#[non_exhaustive]pub enum DocimaError {
IoError(Error),
PngEncodingError(EncodingError),
StdError(Box<dyn Error>),
MissingField(String),
Custom(String),
}
Expand description
The docima Error
type.
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.
IoError(Error)
An IO error.
PngEncodingError(EncodingError)
An image
crate error.
StdError(Box<dyn Error>)
A dynamic std
error.
MissingField(String)
Custom(String)
A custom error, explained in the string.
Trait Implementations§
Source§impl Debug for DocimaError
impl Debug for DocimaError
Source§impl Display for DocimaError
impl Display for DocimaError
Source§impl From<EncodingError> for DocimaError
impl From<EncodingError> for DocimaError
Source§fn from(err: EncodingError) -> Self
fn from(err: EncodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DocimaError
impl !RefUnwindSafe for DocimaError
impl !Send for DocimaError
impl !Sync for DocimaError
impl Unpin for DocimaError
impl !UnwindSafe for DocimaError
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