Enum ogg::reading::OggReadError
source · pub enum OggReadError {
NoCapturePatternFound,
InvalidStreamStructVer(u8),
HashMismatch(u32, u32),
ReadError(Error),
InvalidData,
}
Expand description
Error that can be raised when decoding an Ogg transport.
Variants
NoCapturePatternFound
The capture pattern for a new page was not found where one was expected.
InvalidStreamStructVer(u8)
Invalid stream structure version, with the given one attached.
HashMismatch(u32, u32)
Mismatch of the hash value with (expected, calculated) value.
ReadError(Error)
I/O error occured.
InvalidData
Some constraint required by the spec was not met.
Trait Implementations
sourceimpl Debug for OggReadError
impl Debug for OggReadError
sourceimpl Display for OggReadError
impl Display for OggReadError
sourceimpl Error for OggReadError
impl Error for OggReadError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<Error> for OggReadError
impl From<Error> for OggReadError
sourcefn from(err: Error) -> OggReadError
fn from(err: Error) -> OggReadError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for OggReadError
impl Send for OggReadError
impl Sync for OggReadError
impl Unpin for OggReadError
impl !UnwindSafe for OggReadError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more