pub enum SecretError {
BadKey,
BadValue,
Poisoned,
Backend(String),
}Expand description
Why a secret could not be read, written or removed. A refused key or value is never repeated: the page may have put a secret in the wrong argument.
Variants§
BadKey
The key breaks check_key.
BadValue
The value breaks check_value.
Poisoned
A lock of the store was poisoned by a panic elsewhere.
Backend(String)
The store itself failed (the Keychain refused, is locked or is missing). The text is the system’s, never the caller’s.
Implementations§
Trait Implementations§
Source§impl Clone for SecretError
impl Clone for SecretError
Source§impl Debug for SecretError
impl Debug for SecretError
Source§impl Display for SecretError
impl Display for SecretError
impl Eq for SecretError
Source§impl Error for SecretError
impl Error for SecretError
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<SecretError> for VaultError
impl From<SecretError> for VaultError
Source§fn from(error: SecretError) -> Self
fn from(error: SecretError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecretError
impl PartialEq for SecretError
impl StructuralPartialEq for SecretError
Auto Trait Implementations§
impl Freeze for SecretError
impl RefUnwindSafe for SecretError
impl Send for SecretError
impl Sync for SecretError
impl Unpin for SecretError
impl UnsafeUnpin for SecretError
impl UnwindSafe for SecretError
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