pub enum StreamTypeSpecificData {
Audio(AudioStream),
Video(VideoStream),
Subtitle(),
Other(),
}
Expand description
Represents metadata that is specific to a stream, e.g. fields that are only found in audio
streams or that are only found in video streams, etc. Storing this in an enum allows function to
accept the generic Stream
type regardless of its actual type (audio, video, …).
Variants§
Trait Implementations§
Source§impl Clone for StreamTypeSpecificData
impl Clone for StreamTypeSpecificData
Source§fn clone(&self) -> StreamTypeSpecificData
fn clone(&self) -> StreamTypeSpecificData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StreamTypeSpecificData
impl Debug for StreamTypeSpecificData
Source§impl PartialEq for StreamTypeSpecificData
impl PartialEq for StreamTypeSpecificData
impl StructuralPartialEq for StreamTypeSpecificData
Auto Trait Implementations§
impl Freeze for StreamTypeSpecificData
impl RefUnwindSafe for StreamTypeSpecificData
impl Send for StreamTypeSpecificData
impl Sync for StreamTypeSpecificData
impl Unpin for StreamTypeSpecificData
impl UnwindSafe for StreamTypeSpecificData
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