#[non_exhaustive]pub enum ReceivedVideoRef<'rx> {
Decoded(VideoFrameRef<'rx>),
Compressed(CompressedRef<'rx, VideoPacketFormat>),
}Expand description
Borrowed video returned by a packet receiver, retaining its native buffer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decoded(VideoFrameRef<'rx>)
Decoded pixels borrowed from the receiver.
Compressed(CompressedRef<'rx, VideoPacketFormat>)
Codec bytes borrowed in place.
Implementations§
Source§impl ReceivedVideoRef<'_>
impl ReceivedVideoRef<'_>
Sourcepub fn to_owned(&self) -> ReceivedVideo
pub fn to_owned(&self) -> ReceivedVideo
Copy into the corresponding owned packet or decoded frame.
Trait Implementations§
Auto Trait Implementations§
impl<'rx> Freeze for ReceivedVideoRef<'rx>
impl<'rx> RefUnwindSafe for ReceivedVideoRef<'rx>
impl<'rx> Send for ReceivedVideoRef<'rx>
impl<'rx> Sync for ReceivedVideoRef<'rx>
impl<'rx> Unpin for ReceivedVideoRef<'rx>
impl<'rx> UnsafeUnpin for ReceivedVideoRef<'rx>
impl<'rx> UnwindSafe for ReceivedVideoRef<'rx>
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