Enum lewton::VorbisError
source · pub enum VorbisError {
BadAudio(AudioReadError),
BadHeader(HeaderReadError),
OggError(OggReadError),
}
Expand description
Errors that can occur during decoding
Variants§
Trait Implementations§
source§impl Debug for VorbisError
impl Debug for VorbisError
source§impl Display for VorbisError
impl Display for VorbisError
source§impl Error for VorbisError
impl Error for VorbisError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AudioReadError> for VorbisError
impl From<AudioReadError> for VorbisError
source§fn from(err: AudioReadError) -> VorbisError
fn from(err: AudioReadError) -> VorbisError
Converts to this type from the input type.
source§impl From<HeaderReadError> for VorbisError
impl From<HeaderReadError> for VorbisError
source§fn from(err: HeaderReadError) -> VorbisError
fn from(err: HeaderReadError) -> VorbisError
Converts to this type from the input type.
source§impl From<OggReadError> for VorbisError
impl From<OggReadError> for VorbisError
source§fn from(err: OggReadError) -> VorbisError
fn from(err: OggReadError) -> VorbisError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VorbisError
impl Send for VorbisError
impl Sync for VorbisError
impl Unpin for VorbisError
impl !UnwindSafe for VorbisError
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