pub struct NextSampleTyped<'a> { /* private fields */ }Expand description
Future for getting the next sample buffer together with its output type.
Like NextSample, but yields the SCStreamOutputType alongside the
buffer so consumers of a multi-output stream (e.g. screen + audio via
AsyncSCStream::add_output_type) can tell frames apart. Returned by
AsyncSCStream::next_typed.
Trait Implementations§
Source§impl Debug for NextSampleTyped<'_>
impl Debug for NextSampleTyped<'_>
Source§impl Drop for NextSampleTyped<'_>
impl Drop for NextSampleTyped<'_>
Source§impl Future for NextSampleTyped<'_>
impl Future for NextSampleTyped<'_>
Source§type Output = Option<(CMSampleBuffer, SCStreamOutputType)>
type Output = Option<(CMSampleBuffer, SCStreamOutputType)>
The type of value produced on completion.
Auto Trait Implementations§
impl<'a> Freeze for NextSampleTyped<'a>
impl<'a> RefUnwindSafe for NextSampleTyped<'a>
impl<'a> Send for NextSampleTyped<'a>
impl<'a> Sync for NextSampleTyped<'a>
impl<'a> Unpin for NextSampleTyped<'a>
impl<'a> UnsafeUnpin for NextSampleTyped<'a>
impl<'a> UnwindSafe for NextSampleTyped<'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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more