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§
source§impl Debug for OggReadError
impl Debug for OggReadError
source§impl Display for OggReadError
impl Display for OggReadError
source§impl Error for OggReadError
impl Error for OggReadError
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<Error> for OggReadError
impl From<Error> for OggReadError
source§fn 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§
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