pub enum DntKeyError {
NotFound,
Unavailable,
InvalidKey,
Forbidden,
}Expand description
Controlled key-provider failures.
Variants§
NotFound
The requested key identity is unknown.
The key provider is intentionally unavailable.
InvalidKey
The resolved key material is malformed.
Forbidden
The key is not valid for the supplied context.
Trait Implementations§
Source§impl Clone for DntKeyError
impl Clone for DntKeyError
Source§fn clone(&self) -> DntKeyError
fn clone(&self) -> DntKeyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DntKeyError
impl Debug for DntKeyError
Source§impl Display for DntKeyError
impl Display for DntKeyError
impl Eq for DntKeyError
Source§impl Error for DntKeyError
impl Error for DntKeyError
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()
Source§impl From<DntKeyError> for DntError
impl From<DntKeyError> for DntError
Source§fn from(value: DntKeyError) -> Self
fn from(value: DntKeyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DntKeyError
impl PartialEq for DntKeyError
impl StructuralPartialEq for DntKeyError
Auto Trait Implementations§
impl Freeze for DntKeyError
impl RefUnwindSafe for DntKeyError
impl Send for DntKeyError
impl Sync for DntKeyError
impl Unpin for DntKeyError
impl UnsafeUnpin for DntKeyError
impl UnwindSafe for DntKeyError
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