pub enum KeyResolverError {
NotFound,
Inactive,
Backend(String),
}Expand description
Errors returned by KeyResolver::resolve.
Variants§
NotFound
No key matching the supplied token exists.
Inactive
The key exists but has been deactivated.
Backend(String)
A backend-specific error prevented resolution.
Trait Implementations§
Source§impl Debug for KeyResolverError
impl Debug for KeyResolverError
Source§impl Display for KeyResolverError
impl Display for KeyResolverError
Source§impl Error for KeyResolverError
impl Error for KeyResolverError
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 KeyResolverError
impl RefUnwindSafe for KeyResolverError
impl Send for KeyResolverError
impl Sync for KeyResolverError
impl Unpin for KeyResolverError
impl UnsafeUnpin for KeyResolverError
impl UnwindSafe for KeyResolverError
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