pub struct FrameReceiver { /* private fields */ }Expand description
Each receiver owns its cursor/queue. Dropping next() before it resolves does not consume a frame. Stop wakes all receivers with StreamStopped.
Implementations§
Source§impl FrameReceiver
impl FrameReceiver
Sourcepub fn queued_frames(&self) -> usize
pub fn queued_frames(&self) -> usize
Performs the queued_frames operation.
Sourcepub fn dropped_frames(&self) -> u64
pub fn dropped_frames(&self) -> u64
Performs the dropped_frames operation.
Sourcepub async fn next(&mut self) -> CameraResult<Frame>
pub async fn next(&mut self) -> CameraResult<Frame>
Performs the next operation.
Sourcepub async fn next_timeout(&mut self, timeout: Duration) -> CameraResult<Frame>
pub async fn next_timeout(&mut self, timeout: Duration) -> CameraResult<Frame>
Performs the next_timeout operation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FrameReceiver
impl !UnwindSafe for FrameReceiver
impl Forget for FrameReceiver
impl Freeze for FrameReceiver
impl Send for FrameReceiver
impl Sync for FrameReceiver
impl Unpin for FrameReceiver
impl UnsafeUnpin for FrameReceiver
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