#[non_exhaustive]pub enum SoundRate {
Khz5_5_5,
Khz11,
Khz22,
Khz44,
}Expand description
SoundRate of an AudioTagHeader (§E.4.2, Table E.7).
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.
Khz5_5_5
0: 5.5 kHz.
Khz11
1: 11 kHz.
Khz22
2: 22 kHz.
Khz44
3: 44 kHz (FLV carries no higher rate here; for AAC it is always 3 and
the real rate lives in the AudioSpecificConfig).
Implementations§
Trait Implementations§
impl Copy for SoundRate
Source§impl<'de> Deserialize<'de> for SoundRate
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SoundRate
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
impl Eq for SoundRate
impl StructuralPartialEq for SoundRate
Auto Trait Implementations§
impl Forget for SoundRate
impl Freeze for SoundRate
impl Move for SoundRate
impl RefUnwindSafe for SoundRate
impl Send for SoundRate
impl Sync for SoundRate
impl Unpin for SoundRate
impl UnsafeUnpin for SoundRate
impl UnwindSafe for SoundRate
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