#[non_exhaustive]pub enum RotationError {
KeyGeneration(String),
Kel(KelError),
Storage(RegistryError),
Validation(ValidationError),
IdentityAbandoned,
CommitmentMismatch,
Serialization(String),
InvalidKey(String),
}Expand description
Error type for rotation operations.
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.
KeyGeneration(String)
Kel(KelError)
Storage(RegistryError)
Validation(ValidationError)
IdentityAbandoned
CommitmentMismatch
Serialization(String)
InvalidKey(String)
Trait Implementations§
Source§impl AuthsErrorInfo for RotationError
impl AuthsErrorInfo for RotationError
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 RotationError
impl Debug for RotationError
Source§impl Display for RotationError
impl Display for RotationError
Source§impl Error for RotationError
impl Error for RotationError
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<KelError> for RotationError
impl From<KelError> for RotationError
Source§impl From<ValidationError> for RotationError
impl From<ValidationError> for RotationError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RotationError
impl !RefUnwindSafe for RotationError
impl Send for RotationError
impl Sync for RotationError
impl Unpin for RotationError
impl UnsafeUnpin for RotationError
impl !UnwindSafe for RotationError
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