#[non_exhaustive]pub enum EbookError {
Archive(ArchiveError),
Format(FormatError),
}Expand description
Possible errors for an Ebook.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Archive(ArchiveError)
File access within an ebook archive has failed.
Format(FormatError)
Essential files are missing, such as the manifest or malformed file contents.
Trait Implementations§
Source§impl Debug for EbookError
impl Debug for EbookError
Source§impl Display for EbookError
impl Display for EbookError
Source§impl Error for EbookError
impl Error for EbookError
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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ArchiveError> for EbookError
impl From<ArchiveError> for EbookError
Source§fn from(source: ArchiveError) -> Self
fn from(source: ArchiveError) -> Self
Converts to this type from the input type.
Source§impl From<EbookError> for ReaderError
impl From<EbookError> for ReaderError
Source§fn from(source: EbookError) -> Self
fn from(source: EbookError) -> Self
Converts to this type from the input type.
Source§impl From<FormatError> for EbookError
impl From<FormatError> for EbookError
Source§fn from(source: FormatError) -> Self
fn from(source: FormatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EbookError
impl !RefUnwindSafe for EbookError
impl Send for EbookError
impl Sync for EbookError
impl Unpin for EbookError
impl !UnwindSafe for EbookError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more