#[non_exhaustive]pub enum AudioFormatInfo {
Lpcm {
depth_16: bool,
depth_20: bool,
depth_24: bool,
},
MaxBitrateKbps(u16),
Raw(u8),
}Expand description
Format-specific information from byte 3 of a Short Audio Descriptor.
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.
Lpcm
LPCM (AFC = 1): supported bit depths.
Fields
MaxBitrateKbps(u16)
Compressed formats (AFC 2–8): maximum bitrate in kbps (raw byte × 8).
Raw(u8)
All other formats: raw byte 3 value.
Trait Implementations§
Source§impl Clone for AudioFormatInfo
impl Clone for AudioFormatInfo
Source§fn clone(&self) -> AudioFormatInfo
fn clone(&self) -> AudioFormatInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioFormatInfo
impl Debug for AudioFormatInfo
Source§impl PartialEq for AudioFormatInfo
impl PartialEq for AudioFormatInfo
impl Copy for AudioFormatInfo
impl Eq for AudioFormatInfo
impl StructuralPartialEq for AudioFormatInfo
Auto Trait Implementations§
impl Freeze for AudioFormatInfo
impl RefUnwindSafe for AudioFormatInfo
impl Send for AudioFormatInfo
impl Sync for AudioFormatInfo
impl Unpin for AudioFormatInfo
impl UnsafeUnpin for AudioFormatInfo
impl UnwindSafe for AudioFormatInfo
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