pub enum Codec {
Show 65 variants
Aac,
Ac4,
AdpcmG722,
AdpcmG726,
AdpcmG726Le,
AdpcmImaQt,
AdpcmImaWav,
AdpcmMs,
Alac,
Atrac1,
Atrac3,
Atrac9,
Atrac3Plus,
Dca,
Eac3,
Flac,
MonkeysAudio,
Mp1,
Mp2,
Mp3,
Musepack,
Opus,
PcmAlaw,
PcmF32Be,
PcmF32BePlanar,
PcmF32Le,
PcmF32LePlanar,
PcmF64Be,
PcmF64BePlanar,
PcmF64Le,
PcmF64LePlanar,
PcmMulaw,
PcmS8,
PcmS8Planar,
PcmS16Be,
PcmS16BePlanar,
PcmS16Le,
PcmS16LePlanar,
PcmS24Be,
PcmS24BePlanar,
PcmS24Le,
PcmS24LePlanar,
PcmS32Be,
PcmS32BePlanar,
PcmS32Le,
PcmS32LePlanar,
PcmU8,
PcmU8Planar,
PcmU16Be,
PcmU16BePlanar,
PcmU16Le,
PcmU16LePlanar,
PcmU24Be,
PcmU24BePlanar,
PcmU24Le,
PcmU24LePlanar,
PcmU32Be,
PcmU32BePlanar,
PcmU32Le,
PcmU32LePlanar,
Speex,
Tta,
Vorbis,
WavPack,
Wma,
}Expand description
All supported audio codecs
Variants§
Aac
Ac4
AdpcmG722
AdpcmG726
AdpcmG726Le
AdpcmImaQt
AdpcmImaWav
AdpcmMs
Alac
Atrac1
Atrac3
Atrac9
Atrac3Plus
Dca
Eac3
Flac
MonkeysAudio
Mp1
Mp2
Mp3
Musepack
Opus
PcmAlaw
PcmF32Be
PcmF32BePlanar
PcmF32Le
PcmF32LePlanar
PcmF64Be
PcmF64BePlanar
PcmF64Le
PcmF64LePlanar
PcmMulaw
PcmS8
PcmS8Planar
PcmS16Be
PcmS16BePlanar
PcmS16Le
PcmS16LePlanar
PcmS24Be
PcmS24BePlanar
PcmS24Le
PcmS24LePlanar
PcmS32Be
PcmS32BePlanar
PcmS32Le
PcmS32LePlanar
PcmU8
PcmU8Planar
PcmU16Be
PcmU16BePlanar
PcmU16Le
PcmU16LePlanar
PcmU24Be
PcmU24BePlanar
PcmU24Le
PcmU24LePlanar
PcmU32Be
PcmU32BePlanar
PcmU32Le
PcmU32LePlanar
Speex
Tta
Vorbis
WavPack
Wma
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Codec
impl<'de> Deserialize<'de> for Codec
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
impl Copy for Codec
impl Eq for Codec
impl StructuralPartialEq for Codec
Auto Trait Implementations§
impl Freeze for Codec
impl RefUnwindSafe for Codec
impl Send for Codec
impl Sync for Codec
impl Unpin for Codec
impl UnsafeUnpin for Codec
impl UnwindSafe for Codec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more