pub enum ReadError {
Io(Error),
UnsupportedFormat,
Format(Format, InvalidData),
Decoder(InvalidData),
}
Expand description
An error when reading an ALAC file using a Reader
.
A ReadError::Decoder
will occur if the current packet is invalid. If more samples are read
the reader will skip to the next packet.
Variants§
Trait Implementations§
Source§impl Error for ReadError
impl Error for ReadError
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
Auto Trait Implementations§
impl Freeze for ReadError
impl !RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl !UnwindSafe for ReadError
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