#[non_exhaustive]pub enum PepperError {
UnknownVersion(KeyVersion),
EmptyKeyset,
KeyTooShort {
version: KeyVersion,
actual: usize,
minimum: usize,
},
Backend(String),
}Expand description
Errors returned by Pepper implementations.
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.
UnknownVersion(KeyVersion)
The provider does not hold a key for the requested version.
EmptyKeyset
The provider has no keys registered at all — typically a builder configuration error.
KeyTooShort
A registered key was shorter than the 16-byte safety floor.
Fields
§
version: KeyVersionVersion that failed validation.
Backend(String)
The underlying KMS / HSM backend returned an error.
Trait Implementations§
Source§impl Debug for PepperError
impl Debug for PepperError
Source§impl Display for PepperError
impl Display for PepperError
Source§impl Error for PepperError
impl Error for PepperError
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()
Auto Trait Implementations§
impl Freeze for PepperError
impl RefUnwindSafe for PepperError
impl Send for PepperError
impl Sync for PepperError
impl Unpin for PepperError
impl UnsafeUnpin for PepperError
impl UnwindSafe for PepperError
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