#[non_exhaustive]pub enum SoundFormat {
}Expand description
SoundFormat of an AudioTagHeader (§E.4.2, Table E.6).
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.
LinearPcmPlatformEndian
0: linear PCM, platform endian.
Adpcm
1: ADPCM.
Mp3
2: MP3.
LinearPcmLittleEndian
3: linear PCM, little endian.
Nellymoser16KhzMono
4: Nellymoser 16 kHz mono.
Nellymoser8KhzMono
5: Nellymoser 8 kHz mono.
Nellymoser
6: Nellymoser.
G711ALaw
7: G.711 A-law logarithmic PCM.
G711MuLaw
8: G.711 mu-law logarithmic PCM.
Aac
10: AAC, carried as AACAUDIODATA (§E.4.2.2).
Speex
11: Speex.
Mp3_8Khz
14: MP3 8 kHz.
DeviceSpecific
15: device-specific sound.
Reserved(u8)
9: reserved by the specification.
Unknown(u8)
12, 13: outside the table, carried as written.
Implementations§
Trait Implementations§
Source§impl Clone for SoundFormat
impl Clone for SoundFormat
impl Copy for SoundFormat
Source§impl Debug for SoundFormat
impl Debug for SoundFormat
Source§impl<'de> Deserialize<'de> for SoundFormat
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SoundFormat
Available on crate feature
serde only.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 SoundFormat
impl Display for SoundFormat
impl Eq for SoundFormat
Source§impl Hash for SoundFormat
impl Hash for SoundFormat
Source§impl PartialEq for SoundFormat
impl PartialEq for SoundFormat
Source§impl Serialize for SoundFormat
Available on crate feature serde only.
impl Serialize for SoundFormat
Available on crate feature
serde only.impl StructuralPartialEq for SoundFormat
Auto Trait Implementations§
impl Forget for SoundFormat
impl Freeze for SoundFormat
impl Move for SoundFormat
impl RefUnwindSafe for SoundFormat
impl Send for SoundFormat
impl Sync for SoundFormat
impl Unpin for SoundFormat
impl UnsafeUnpin for SoundFormat
impl UnwindSafe for SoundFormat
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