#[non_exhaustive]pub enum JwkStorageDocumentError {
KeyStorageError(SingleStructError<KeyStorageErrorKind>),
KeyIdStorageError(SingleStructError<KeyIdStorageErrorKind>),
FragmentAlreadyExists,
MethodNotFound,
NotPublicKeyJwk,
InvalidJwsAlgorithm,
VerificationMethodConstructionError(Error),
EncodingError(Box<dyn Error + Send + Sync>),
MethodDigestConstructionError(SingleStructError<MethodDigestConstructionErrorKind>),
ClaimsSerializationError(Error),
UndoOperationFailed {
message: String,
source: Box<JwkStorageDocumentError>,
undo_error: Option<Box<JwkStorageDocumentError>>,
},
}
Expand description
Errors that can occur when working with the JwkDocumentExt
API.
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.
KeyStorageError(SingleStructError<KeyStorageErrorKind>)
Caused by a failure in the key storage.
KeyIdStorageError(SingleStructError<KeyIdStorageErrorKind>)
Caused by a failure in the key id storage.
FragmentAlreadyExists
Caused by an attempt to add a method with a fragment that already exists.
MethodNotFound
Caused by a missing verification method.
NotPublicKeyJwk
Caused by the usage of a non-JWK method where a JWK method is expected.
InvalidJwsAlgorithm
Caused by an invalid JWS algorithm.
VerificationMethodConstructionError(Error)
Caused by a failure to construct a verification method.
EncodingError(Box<dyn Error + Send + Sync>)
Caused by an encoding error.
MethodDigestConstructionError(SingleStructError<MethodDigestConstructionErrorKind>)
Caused by a failure to construct a method digest.
ClaimsSerializationError(Error)
Caused by a failure during (de)serialization of JWS claims.
UndoOperationFailed
Fields
§
source: Box<JwkStorageDocumentError>
The source error.
§
undo_error: Option<Box<JwkStorageDocumentError>>
The error that occurred during the undo operation.
Caused by a failure to undo a failed storage operation.
Trait Implementations§
source§impl Debug for JwkStorageDocumentError
impl Debug for JwkStorageDocumentError
source§impl Display for JwkStorageDocumentError
impl Display for JwkStorageDocumentError
source§impl Error for JwkStorageDocumentError
impl Error for JwkStorageDocumentError
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()
Auto Trait Implementations§
impl Freeze for JwkStorageDocumentError
impl !RefUnwindSafe for JwkStorageDocumentError
impl Send for JwkStorageDocumentError
impl Sync for JwkStorageDocumentError
impl Unpin for JwkStorageDocumentError
impl !UnwindSafe for JwkStorageDocumentError
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