pub enum Format {
Pcm48,
Encoded {
hint: Option<String>,
},
}Expand description
How the bytes of a Stream are encoded.
Variants§
Pcm48
Raw interleaved signed 16-bit little-endian stereo PCM at 48 kHz.
Encoded
Any container/codec the decoder can probe (MP3, AAC/M4A, FLAC, Ogg
Vorbis, WAV…). hint is a file extension or MIME type that speeds up
probing ("mp3", "audio/ogg"); it may be None.
Implementations§
Trait Implementations§
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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