#[non_exhaustive]pub enum CodecId {
Audio(AudioCodecId),
Video(VideoCodecId),
Subtitle(SubtitleCodecId),
}Expand description
Generic wrapper around type-specific codec IDs.
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.
Audio(AudioCodecId)
Codec ID for an audio codec.
Video(VideoCodecId)
Codec ID for a video codec.
Subtitle(SubtitleCodecId)
Codec ID for a subtitle codec.
Trait Implementations§
Source§impl From<AudioCodecId> for CodecId
impl From<AudioCodecId> for CodecId
Source§fn from(value: AudioCodecId) -> Self
fn from(value: AudioCodecId) -> Self
Converts to this type from the input type.
Source§impl From<SubtitleCodecId> for CodecId
impl From<SubtitleCodecId> for CodecId
Source§fn from(value: SubtitleCodecId) -> Self
fn from(value: SubtitleCodecId) -> Self
Converts to this type from the input type.
Source§impl From<VideoCodecId> for CodecId
impl From<VideoCodecId> for CodecId
Source§fn from(value: VideoCodecId) -> Self
fn from(value: VideoCodecId) -> Self
Converts to this type from the input type.
impl Copy for CodecId
impl Eq for CodecId
impl StructuralPartialEq for CodecId
Auto Trait Implementations§
impl Freeze for CodecId
impl RefUnwindSafe for CodecId
impl Send for CodecId
impl Sync for CodecId
impl Unpin for CodecId
impl UnsafeUnpin for CodecId
impl UnwindSafe for CodecId
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