pub struct CompressedVideo<'a> { /* private fields */ }Expand description
Exclusive video operations borrowed from a CompressedSender.
It is Send, but neither Sync nor Clone. Pending frames stay with the
owner when the view is dropped; closing or dropping the owner drains them.
Implementations§
Source§impl CompressedVideo<'_>
impl CompressedVideo<'_>
Sourcepub fn send_video(&mut self, frame: &mut CompressedFrame<VideoPacketFormat>)
pub fn send_video(&mut self, frame: &mut CompressedFrame<VideoPacketFormat>)
Sourcepub fn submit_video(
&mut self,
frame: CompressedFrame<VideoPacketFormat>,
) -> Option<SubmittedVideo>
pub fn submit_video( &mut self, frame: CompressedFrame<VideoPacketFormat>, ) -> Option<SubmittedVideo>
Sourcepub fn reclaim_video(&mut self) -> ReclaimedVideo
pub fn reclaim_video(&mut self) -> ReclaimedVideo
Sourcepub fn send_scatter_video(
&mut self,
frame: &mut ScatterFrame<VideoPacketFormat>,
) -> Result<()>
pub fn send_scatter_video( &mut self, frame: &mut ScatterFrame<VideoPacketFormat>, ) -> Result<()>
Sourcepub fn submit_scatter_video(
&mut self,
frame: ScatterFrame<VideoPacketFormat>,
) -> Result<Option<SubmittedVideo>, Rejected<ScatterFrame<VideoPacketFormat>>>
pub fn submit_scatter_video( &mut self, frame: ScatterFrame<VideoPacketFormat>, ) -> Result<Option<SubmittedVideo>, Rejected<ScatterFrame<VideoPacketFormat>>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Sync for CompressedVideo<'a>
impl<'a> !UnwindSafe for CompressedVideo<'a>
impl<'a> Freeze for CompressedVideo<'a>
impl<'a> RefUnwindSafe for CompressedVideo<'a>
impl<'a> Send for CompressedVideo<'a>
impl<'a> Unpin for CompressedVideo<'a>
impl<'a> UnsafeUnpin for CompressedVideo<'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