#[non_exhaustive]pub enum ReceivedVideo {
Decoded(VideoFrame),
Compressed(ReceivedPacket<VideoPacketFormat>),
}Expand description
Video from a PacketReceiver: a codec packet when the source’s format is
one the preset passes through, a decoded frame otherwise.
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(VideoFrame)
A decoded frame.
Compressed(ReceivedPacket<VideoPacketFormat>)
A codec packet, exactly as the source sent it.
Trait Implementations§
Source§impl Clone for ReceivedVideo
impl Clone for ReceivedVideo
Auto Trait Implementations§
impl Freeze for ReceivedVideo
impl RefUnwindSafe for ReceivedVideo
impl Send for ReceivedVideo
impl Sync for ReceivedVideo
impl Unpin for ReceivedVideo
impl UnsafeUnpin for ReceivedVideo
impl UnwindSafe for ReceivedVideo
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