pub enum FormatError {
Flac(Error),
FlacUnsupportedSampleBits(u32),
OggVorbis(VorbisError),
Wav(Error),
WavUnsupportedSampleBits(u16),
Caf(CafError),
Alac(()),
}
Expand description
Format-specific errors that might occur when opening or reading from an audio file.
Variants§
Flac(Error)
FlacUnsupportedSampleBits(u32)
OggVorbis(VorbisError)
Wav(Error)
WavUnsupportedSampleBits(u16)
Caf(CafError)
Alac(())
Trait Implementations§
Source§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
Source§impl Error for FormatError
impl Error for FormatError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<CafError> for FormatError
impl From<CafError> for FormatError
Source§impl From<Error> for FormatError
impl From<Error> for FormatError
Source§impl From<Error> for FormatError
impl From<Error> for FormatError
Source§impl From<VorbisError> for FormatError
impl From<VorbisError> for FormatError
Source§fn from(err: VorbisError) -> Self
fn from(err: VorbisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FormatError
impl !RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl !UnwindSafe for FormatError
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