pub enum AudioCodec {
Aac,
Ac3,
Eac3,
Dts,
TrueHd,
Flac,
Alac,
Opus,
Vorbis,
Mp3,
Pcm,
Unknown,
}Expand description
An audio codec. Dts covers DTS-HD MA too: the core is DTS.
Variants§
Implementations§
Source§impl AudioCodec
impl AudioCodec
Source§impl AudioCodec
impl AudioCodec
Sourcepub const ALL: &'static [AudioCodec]
pub const ALL: &'static [AudioCodec]
Every value an app offers, in the order a client lists
them: all but Unknown.
Sourcepub fn from_wire_name(name: &str) -> Option<Self>
pub fn from_wire_name(name: &str) -> Option<Self>
The value named name on the wire; None for a name
this build doesn’t know.
Trait Implementations§
Source§impl Clone for AudioCodec
impl Clone for AudioCodec
impl Copy for AudioCodec
Source§impl Debug for AudioCodec
impl Debug for AudioCodec
Source§impl<'de> Deserialize<'de> for AudioCodec
impl<'de> Deserialize<'de> for AudioCodec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AudioCodec
impl Display for AudioCodec
impl Eq for AudioCodec
Source§impl Hash for AudioCodec
impl Hash for AudioCodec
Source§impl Ord for AudioCodec
impl Ord for AudioCodec
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AudioCodec
impl PartialEq for AudioCodec
Source§impl PartialOrd for AudioCodec
impl PartialOrd for AudioCodec
Source§impl Serialize for AudioCodec
impl Serialize for AudioCodec
impl StructuralPartialEq for AudioCodec
Auto Trait Implementations§
impl Forget for AudioCodec
impl Freeze for AudioCodec
impl Move for AudioCodec
impl RefUnwindSafe for AudioCodec
impl Send for AudioCodec
impl Sync for AudioCodec
impl Unpin for AudioCodec
impl UnsafeUnpin for AudioCodec
impl UnwindSafe for AudioCodec
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