pub enum FormatType {
LinearPcm,
AppleIma4,
Mpeg4Aac,
Mace3,
Mace6,
Ulaw,
Alaw,
MpegLayer1,
MpegLayer2,
MpegLayer3,
AppleLossless,
Other(u32),
}
Expand description
Payload format types defined by the spec
Enum for all the possible mFormatID
field contents
defined by the spec.
The spec explicitly says that the list is not exhaustive.
Variants§
LinearPcm
mFormatID for Linear PCM
AppleIma4
mFormatID for IMA 4:1 ADPCM
Mpeg4Aac
mFormatID for MPEG-4 AAC
Mace3
mFormatID for MACE 3:1
Mace6
mFormatID for MACE 6:1
Ulaw
mFormatID for uLaw 2:1
Alaw
mFormatID for aLaw 2:1
MpegLayer1
mFormatID for MPEG-1
MpegLayer2
mFormatID for MPEG-{1,2}
MpegLayer3
mFormatID for MPEG-{1,2,3}
AppleLossless
mFormatID for Apple Lossless
Other(u32)
Variant for all formats that were not mentioned in this list.
Trait Implementations§
Source§impl Clone for FormatType
impl Clone for FormatType
Source§fn clone(&self) -> FormatType
fn clone(&self) -> FormatType
Returns a copy 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 FormatType
impl Debug for FormatType
Source§impl From<u32> for FormatType
impl From<u32> for FormatType
Source§impl PartialEq for FormatType
impl PartialEq for FormatType
impl Eq for FormatType
impl StructuralPartialEq for FormatType
Auto Trait Implementations§
impl Freeze for FormatType
impl RefUnwindSafe for FormatType
impl Send for FormatType
impl Sync for FormatType
impl Unpin for FormatType
impl UnwindSafe for FormatType
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