pub enum MobiError {
IoError(Error),
MetadataParseError(MetadataParseError),
DecodeError(DecodeError),
HuffmanError(HuffmanError),
}Variants§
IoError(Error)
MetadataParseError(MetadataParseError)
DecodeError(DecodeError)
HuffmanError(HuffmanError)
Trait Implementations§
Source§impl Error for MobiError
impl Error for MobiError
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
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<DecodeError> for MobiError
impl From<DecodeError> for MobiError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<MetadataParseError> for MobiError
impl From<MetadataParseError> for MobiError
Source§fn from(source: MetadataParseError) -> Self
fn from(source: MetadataParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MobiError
impl !RefUnwindSafe for MobiError
impl Send for MobiError
impl Sync for MobiError
impl Unpin for MobiError
impl !UnwindSafe for MobiError
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