pub enum IdenticonError {
GenerateImageError,
SaveImageError,
EncodeImageError,
ScaleTooSmallError {
scale: u32,
size: u32,
},
SizeTooLargeError {
size: u32,
scale: u32,
},
ThemeError(ThemeError),
}
Expand description
Identicon errors
Variants§
GenerateImageError
Failed to generate the image.
SaveImageError
Failed to save the image to a file.
EncodeImageError
Failed to encode the image.
ScaleTooSmallError
Indicates an issue with using a scale smaller than the size.
SizeTooLargeError
Indicates an issues with using a size larger than the scale.
ThemeError(ThemeError)
Indicates an issue with the provided theme.
Trait Implementations§
Source§impl Debug for IdenticonError
impl Debug for IdenticonError
Source§impl Display for IdenticonError
impl Display for IdenticonError
Source§impl Error for IdenticonError
impl Error for IdenticonError
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<ThemeError> for IdenticonError
impl From<ThemeError> for IdenticonError
Source§fn from(source: ThemeError) -> Self
fn from(source: ThemeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IdenticonError
impl RefUnwindSafe for IdenticonError
impl Send for IdenticonError
impl Sync for IdenticonError
impl Unpin for IdenticonError
impl UnwindSafe for IdenticonError
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