pub enum IdentityError {
EmptyIdentity,
InputTooLong {
len: usize,
max: usize,
},
Hex(FromHexError),
Base58(Error),
Base64(DecodeError),
UnsupportedFormat,
}Expand description
Errors related to identity parsing and validation.
Variants§
EmptyIdentity
The provided identity string was empty.
InputTooLong
The provided identity string exceeds the maximum allowed.
Hex(FromHexError)
Error decoding a hex-encoded identity.
Base58(Error)
Error decoding a Base58-encoded identity.
Base64(DecodeError)
Error decoding a Base64-encoded identity.
UnsupportedFormat
The input string did not match any supported identity format (hex, Base58, Base64).
Trait Implementations§
Source§impl Debug for IdentityError
impl Debug for IdentityError
Source§impl Display for IdentityError
impl Display for IdentityError
Source§impl Error for IdentityError
impl Error for IdentityError
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<DecodeError> for IdentityError
impl From<DecodeError> for IdentityError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for IdentityError
impl From<Error> for IdentityError
Source§impl From<FromHexError> for IdentityError
impl From<FromHexError> for IdentityError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<IdentityError> for EscrowError
impl From<IdentityError> for EscrowError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IdentityError
impl RefUnwindSafe for IdentityError
impl Send for IdentityError
impl Sync for IdentityError
impl Unpin for IdentityError
impl UnwindSafe for IdentityError
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