Enum ockam_identity::IdentityError
source · pub enum IdentityError {
Show 22 variants
InvalidKeyType = 1,
InvalidKeyData = 2,
InvalidIdentifier = 3,
EmptyIdentity = 4,
IdentityVerificationFailed = 5,
PurposeKeyAttestationVerificationFailed = 6,
CredentialVerificationFailed = 7,
UnknownTimestamp = 8,
UnknownAuthority = 9,
UnknownCredentialVersion = 10,
UnknownIdentityVersion = 11,
SecureChannelVerificationFailedIncorrectCredential = 12,
SecureChannelVerificationFailedMissingTrustContext = 13,
SecureChannelTrustCheckFailed = 14,
InvalidNonce = 15,
NonceOverflow = 16,
UnknownChannelMsgDestination = 17,
InvalidLocalInfoType = 18,
DuplicateSecureChannel = 19,
ConsistencyError = 20,
InvalidHex = 21,
WrongSecretKey = 22,
}
Expand description
Identity crate error
Variants§
InvalidKeyType = 1
Invalid key type
InvalidKeyData = 2
Invalid Key Data
InvalidIdentifier = 3
Invalid Identifier format
EmptyIdentity = 4
Identity Change History is empty
IdentityVerificationFailed = 5
Identity Verification Failed
PurposeKeyAttestationVerificationFailed = 6
PurposeKeyAttestation Verification Failed
CredentialVerificationFailed = 7
Credential Verification Failed
UnknownTimestamp = 8
Error occurred while getting current UTC Timestamp
UnknownAuthority = 9
Unknown Authority
UnknownCredentialVersion = 10
Unknown version of the Credential
UnknownIdentityVersion = 11
Unknown version of the Identity
SecureChannelVerificationFailedIncorrectCredential = 12
A credential was rejected by the trust context
SecureChannelVerificationFailedMissingTrustContext = 13
Credentials could not be checked because the trust context is missing
SecureChannelTrustCheckFailed = 14
SecureChannelTrustCheckFailed
InvalidNonce = 15
Invalid Nonce value
NonceOverflow = 16
Nonce overflow
UnknownChannelMsgDestination = 17
Unknown message destination
InvalidLocalInfoType = 18
Invalid LocalInfo type
DuplicateSecureChannel = 19
Duplicate Secure Channel
ConsistencyError = 20
Consistency Error
InvalidHex = 21
Invalid Hex
WrongSecretKey = 22
Secret Key doesn’t correspond to the Identity
Trait Implementations§
source§impl Clone for IdentityError
impl Clone for IdentityError
source§fn clone(&self) -> IdentityError
fn clone(&self) -> IdentityError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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)>
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<IdentityError> for Error
impl From<IdentityError> for Error
source§fn from(err: IdentityError) -> Self
fn from(err: IdentityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for IdentityError
impl Send for IdentityError
impl Sync for IdentityError
impl Unpin for IdentityError
impl UnwindSafe for IdentityError
Blanket Implementations§
source§impl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
impl<D> AsyncTryClone for Dwhere D: Clone + Sync,
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere TracedError<E>: From<E>,
§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more