pub enum AudioFormat {
Wav,
Flac,
Opus,
Mp3,
WebmOpus,
OggOpus,
Mpeg,
}
Expand description
The Audio Format of the audio data.
Variants§
Wav
The audio is in WAV format.
Header needs to be present in the beginning of the audio data.
Flac
The audio is in FLAC format.
Opus
The audio is in Opus format.
Mp3
The audio is in MP3 format.
WebmOpus
The audio is in WebM Opus format.
OggOpus
The audio is in Ogg Opus format.
Mpeg
The audio is in MPEG format.
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
Source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
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 AudioFormat
impl Debug for AudioFormat
Source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
Source§impl TryFrom<&OsStr> for AudioFormat
impl TryFrom<&OsStr> for AudioFormat
impl Eq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl Freeze for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnwindSafe for AudioFormat
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