pub struct QueuedVideo<'a> { /* private fields */ }Expand description
Exclusive video operations borrowed from a QueuedSender.
Move this half to a scoped video thread while the other half sends audio,
metadata or controls. It is Send, but neither Sync nor Clone, and
cannot outlive its owner. Dropping it leaves pending frames with the owner.
Implementations§
Source§impl QueuedVideo<'_>
impl QueuedVideo<'_>
Sourcepub fn try_submit(
&mut self,
frame: impl Into<QueuedVideoFrame>,
) -> Result<SubmissionId, Rejected<QueuedVideoFrame>>
pub fn try_submit( &mut self, frame: impl Into<QueuedVideoFrame>, ) -> Result<SubmissionId, Rejected<QueuedVideoFrame>>
Sourcepub fn try_next_completed(&mut self) -> Option<CompletedVideo>
pub fn try_next_completed(&mut self) -> Option<CompletedVideo>
Sourcepub fn next_completed(
&mut self,
timeout: Duration,
) -> Result<Option<CompletedVideo>>
pub fn next_completed( &mut self, timeout: Duration, ) -> Result<Option<CompletedVideo>>
Sourcepub fn retained_frames(&self) -> usize
pub fn retained_frames(&self) -> usize
Sourcepub fn completion_protocol_failed(&self) -> bool
pub fn completion_protocol_failed(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Sync for QueuedVideo<'a>
impl<'a> Freeze for QueuedVideo<'a>
impl<'a> RefUnwindSafe for QueuedVideo<'a>
impl<'a> Send for QueuedVideo<'a>
impl<'a> Unpin for QueuedVideo<'a>
impl<'a> UnsafeUnpin for QueuedVideo<'a>
impl<'a> UnwindSafe for QueuedVideo<'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