pub enum DecoderError {
IOError(Error),
FormatError(String),
NoExtension,
UnsupportedExtension(String),
IncompleteData,
DisabledExtension {
extension: &'static str,
feature: &'static str,
},
}
Expand description
An error encountered while decoding an audio file.
Variants§
IOError(Error)
I/O error.
FormatError(String)
Error specific to the audio format.
NoExtension
No extension was provided on the input file.
UnsupportedExtension(String)
The extension on the input file is not supported for decoding.
IncompleteData
The decoder could not read a complete frame or sample, possibly due to an EOF.
DisabledExtension
The extension on the input file requires a feature that is not enabled.
Trait Implementations§
Source§impl Debug for DecoderError
impl Debug for DecoderError
Source§impl Display for DecoderError
impl Display for DecoderError
Source§impl Error for DecoderError
impl Error for DecoderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DecoderError
impl !RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl !UnwindSafe for DecoderError
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