pub enum IdentityError {
Show 25 variants
InvalidKey(String),
SignatureInvalid,
NotFound(String),
DerivationFailed(String),
EncryptionFailed(String),
DecryptionFailed(String),
InvalidPassphrase,
TrustNotGranted(String),
TrustRevoked(String),
TrustExpired,
TrustNotYetValid,
MaxUsesExceeded,
DelegationNotAllowed,
DelegationDepthExceeded,
InvalidChain,
StorageError(String),
SerializationError(String),
InvalidFileFormat(String),
Io(Error),
CompetenceNotMet {
domain: String,
required_rate: f32,
actual_rate: f32,
},
InsufficientAttempts {
required: u64,
actual: u64,
},
CompetenceProofExpired,
NotImpossible {
capability: String,
},
InvalidNegativeProof {
reason: String,
},
PermanentDeclaration,
}Expand description
Identity error types covering all operations.
Variants§
InvalidKey(String)
SignatureInvalid
NotFound(String)
DerivationFailed(String)
EncryptionFailed(String)
DecryptionFailed(String)
InvalidPassphrase
TrustNotGranted(String)
TrustRevoked(String)
TrustExpired
TrustNotYetValid
MaxUsesExceeded
DelegationNotAllowed
DelegationDepthExceeded
InvalidChain
StorageError(String)
SerializationError(String)
InvalidFileFormat(String)
Io(Error)
CompetenceNotMet
InsufficientAttempts
CompetenceProofExpired
NotImpossible
InvalidNegativeProof
PermanentDeclaration
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()
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