pub enum KeyError {
MissingActiveKey,
MissingKeyVersion,
InvalidKeyMaterial,
}Expand description
A key provider could not supply usable key material.
Carries no key bytes. Missing material is fatal to the operation; there is no fallback key (INV-2, SR-29).
Variants§
MissingActiveKey
No active key is configured.
MissingKeyVersion
The requested historical key version is not available. Validation fails closed for that candidate rather than falling back.
InvalidKeyMaterial
Key material was present but unusable (e.g. empty).
Trait Implementations§
impl Eq for KeyError
Source§impl Error for KeyError
impl Error for KeyError
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()
impl StructuralPartialEq for KeyError
Auto Trait Implementations§
impl Freeze for KeyError
impl RefUnwindSafe for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl UnsafeUnpin for KeyError
impl UnwindSafe for KeyError
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