#[non_exhaustive]pub enum IdentityError {
Keri(String),
Pkcs8EncodeError(String),
Pkcs8DecodeError(String),
EmptyPassphrase,
InvalidKeyLength(usize),
KeyStorage(String),
KeyRetrieval(String),
RingError(String),
}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.
Keri(String)
Pkcs8EncodeError(String)
Pkcs8DecodeError(String)
EmptyPassphrase
InvalidKeyLength(usize)
KeyStorage(String)
KeyRetrieval(String)
RingError(String)
Trait Implementations§
Source§impl AuthsErrorInfo for IdentityError
impl AuthsErrorInfo for IdentityError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Returns a unique error code string for this error variant.
Source§fn suggestion(&self) -> Option<&'static str>
fn suggestion(&self) -> Option<&'static str>
Returns an optional actionable suggestion for resolving the error.
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
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<Error> for IdentityError
impl From<Error> for IdentityError
Source§impl From<IdentityError> for InitError
impl From<IdentityError> for InitError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Converts to this type from the input type.
Source§impl From<KeyRejected> for IdentityError
impl From<KeyRejected> for IdentityError
Source§fn from(err: KeyRejected) -> Self
fn from(err: KeyRejected) -> Self
Converts to this type from the input type.
Source§impl From<Unspecified> for IdentityError
impl From<Unspecified> for IdentityError
Source§fn from(err: Unspecified) -> Self
fn from(err: Unspecified) -> 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 UnsafeUnpin 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