pub enum ZBase32Error {
InputError(InputErrorCause),
UsageError(UsageErrorCause),
}Expand description
Common error type used by all fallible operations where bad input could be the cause
By design, this type is mostly opaque - with the exception
that its possible to differentiate between errors with input
data and other types of errors. The Debug or Display
implementations can be used to format a more specific error
message.
Variants§
InputError(InputErrorCause)
An InputError indicates that an input array contained an invalid value. For example, a non-zbase32 character being passed to one of the decode methods.
UsageError(UsageErrorCause)
A UsageError indicates an error outside of an invalid input value.
Trait Implementations§
Source§impl Debug for ZBase32Error
impl Debug for ZBase32Error
Source§impl Display for ZBase32Error
impl Display for ZBase32Error
Source§impl Error for ZBase32Error
impl Error for ZBase32Error
1.30.0 · 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<UsageError> for ZBase32Error
impl From<UsageError> for ZBase32Error
Source§fn from(err: UsageError) -> Self
fn from(err: UsageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ZBase32Error
impl RefUnwindSafe for ZBase32Error
impl Send for ZBase32Error
impl Sync for ZBase32Error
impl Unpin for ZBase32Error
impl UnwindSafe for ZBase32Error
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