#[non_exhaustive]pub enum ReceiverItem {
Video(VideoFrame),
Audio(AudioFrame),
Metadata(MetadataFrame),
Event(ReceiverEvent),
}Expand description
An owned item delivered by Receiver::capture_any or an async
receiver’s combined capture. Media buffers and metadata can outlive the
receiver and move between threads.
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(VideoFrame)
Validated uncompressed video with packed active rows.
Audio(AudioFrame)
Validated planar floating-point audio with packed channels.
Metadata(MetadataFrame)
Standalone frame metadata.
Event(ReceiverEvent)
A consumed, coalesced receiver invalidation.
Trait Implementations§
Source§impl Clone for ReceiverItem
impl Clone for ReceiverItem
Auto Trait Implementations§
impl Freeze for ReceiverItem
impl RefUnwindSafe for ReceiverItem
impl Send for ReceiverItem
impl Sync for ReceiverItem
impl Unpin for ReceiverItem
impl UnsafeUnpin for ReceiverItem
impl UnwindSafe for ReceiverItem
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