pub struct SampleStream<'a> { /* private fields */ }Expand description
A Stream of captured sample buffers.
Yields CMSampleBuffers and ends (None) when the stream closes. Returned
by AsyncSCStream::frames; it borrows the stream and is Unpin, so it
plugs straight into the futures::StreamExt combinators:
use futures_util::StreamExt;
let first_ten: Vec<_> = stream.frames().take(10).collect().await;Trait Implementations§
Source§impl Debug for SampleStream<'_>
impl Debug for SampleStream<'_>
Source§impl Drop for SampleStream<'_>
impl Drop for SampleStream<'_>
Source§impl Stream for SampleStream<'_>
impl Stream for SampleStream<'_>
Source§type Item = CMSampleBuffer
type Item = CMSampleBuffer
Values yielded by the stream.
Auto Trait Implementations§
impl<'a> Freeze for SampleStream<'a>
impl<'a> RefUnwindSafe for SampleStream<'a>
impl<'a> Send for SampleStream<'a>
impl<'a> Sync for SampleStream<'a>
impl<'a> Unpin for SampleStream<'a>
impl<'a> UnsafeUnpin for SampleStream<'a>
impl<'a> UnwindSafe for SampleStream<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more