#[non_exhaustive]pub enum PacketItem {
Video(ReceivedVideo),
Audio(ReceivedAudio),
Metadata(MetadataFrame),
Event(ReceiverEvent),
}Expand description
What one PacketReceiver::capture_any call produced.
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.
Video(ReceivedVideo)
A video frame.
Audio(ReceivedAudio)
An audio frame.
Metadata(MetadataFrame)
A metadata frame.
Event(ReceiverEvent)
A receiver invalidation, with the same status snapshot and semantics
as crate::ReceiverItem::Event.
Trait Implementations§
Source§impl Clone for PacketItem
impl Clone for PacketItem
Auto Trait Implementations§
impl Freeze for PacketItem
impl RefUnwindSafe for PacketItem
impl Send for PacketItem
impl Sync for PacketItem
impl Unpin for PacketItem
impl UnsafeUnpin for PacketItem
impl UnwindSafe for PacketItem
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