pub struct VideoFrameStream(/* private fields */);Expand description
The receive side’s queue (one consumer), crate::Call::video_frames.
Implementations§
Source§impl VideoFrameStream
impl VideoFrameStream
Sourcepub async fn recv(&mut self) -> Option<VideoRecvItem>
pub async fn recv(&mut self) -> Option<VideoRecvItem>
The next item; None once the call ended.
Sourcepub fn try_recv(&mut self) -> Option<VideoRecvItem>
pub fn try_recv(&mut self) -> Option<VideoRecvItem>
The next item if one is waiting.
Trait Implementations§
Auto Trait Implementations§
impl Forget for VideoFrameStream
impl Freeze for VideoFrameStreamwhere
*const ArcInner<Chan<VideoRecvItem, Semaphore>> is !null: Freeze,
PhantomData<ArcInner<Chan<VideoRecvItem, Semaphore>>>: Freeze,
impl Move for VideoFrameStream
impl RefUnwindSafe for VideoFrameStream
impl Send for VideoFrameStream
impl Sync for VideoFrameStream
impl Unpin for VideoFrameStream
impl UnsafeUnpin for VideoFrameStreamwhere
*const ArcInner<Chan<VideoRecvItem, Semaphore>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Chan<VideoRecvItem, Semaphore>>>: UnsafeUnpin,
impl UnwindSafe for VideoFrameStream
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more