pub enum SoundFormat {
Show 14 variants
LinearPCMPlatformEndian = 0,
ADPCM = 1,
MP3 = 2,
LinearPCMLittleEndian = 3,
Nellymoser16 = 4,
Nellymoser8 = 5,
Nellymoser = 6,
G711ALaw = 7,
G711MuLaw = 8,
Reserved = 9,
AAC = 10,
Speex = 11,
MP38kHz = 14,
DeviceSpecific = 15,
}Expand description
Sound format
Variants§
LinearPCMPlatformEndian = 0
ADPCM = 1
MP3 = 2
LinearPCMLittleEndian = 3
Nellymoser16 = 4
Nellymoser8 = 5
Nellymoser = 6
G711ALaw = 7
G711MuLaw = 8
Reserved = 9
AAC = 10
Speex = 11
MP38kHz = 14
DeviceSpecific = 15
Trait Implementations§
Source§impl Clone for SoundFormat
impl Clone for SoundFormat
Source§fn clone(&self) -> SoundFormat
fn clone(&self) -> SoundFormat
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 SoundFormat
impl Debug for SoundFormat
Source§impl From<SoundFormat> for u8
impl From<SoundFormat> for u8
Source§fn from(sf: SoundFormat) -> Self
fn from(sf: SoundFormat) -> Self
Converts to this type from the input type.
Source§impl Hash for SoundFormat
impl Hash for SoundFormat
Source§impl Ord for SoundFormat
impl Ord for SoundFormat
Source§fn cmp(&self, other: &SoundFormat) -> Ordering
fn cmp(&self, other: &SoundFormat) -> Ordering
1.21.0 · 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
Source§impl PartialEq for SoundFormat
impl PartialEq for SoundFormat
Source§impl PartialOrd for SoundFormat
impl PartialOrd for SoundFormat
Source§impl TryFrom<u8> for SoundFormat
impl TryFrom<u8> for SoundFormat
impl Copy for SoundFormat
impl Eq for SoundFormat
impl StructuralPartialEq for SoundFormat
Auto Trait Implementations§
impl Freeze for SoundFormat
impl RefUnwindSafe for SoundFormat
impl Send for SoundFormat
impl Sync for SoundFormat
impl Unpin 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