Enum hexcrypt::error::HexCryptError
source · pub enum HexCryptError {
IoError(Error),
InvalidImageSize(String),
CannotCreateImage(u32, u32),
ImageError(ImageError),
BytesToString(FromUtf8Error),
}Expand description
Custom error type for the hexcrypt application.
Variants§
IoError(Error)
Represents an I/O error.
InvalidImageSize(String)
Represents an error related to an invalid image size.
CannotCreateImage(u32, u32)
Represents an error that occurs when an image cannot be created with the specified size.
ImageError(ImageError)
Represents an error related to image processing.
BytesToString(FromUtf8Error)
Represents an error that occurs when image bytes cannot be converted to a string.
Trait Implementations§
source§impl Debug for HexCryptError
impl Debug for HexCryptError
source§impl Display for HexCryptError
impl Display for HexCryptError
source§impl Error for HexCryptError
impl Error for HexCryptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for HexCryptError
impl From<Error> for HexCryptError
source§impl From<FromUtf8Error> for HexCryptError
impl From<FromUtf8Error> for HexCryptError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HexCryptError
impl Send for HexCryptError
impl Sync for HexCryptError
impl Unpin for HexCryptError
impl !UnwindSafe for HexCryptError
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