pub enum SecretError {
Unavailable(String),
NotFound {
service: String,
key: String,
},
Backend(String),
InvalidJson(String),
}Expand description
Errors the secret store can produce.
Variants§
No OS backend is available (e.g. headless Linux with no Secret Service daemon, or a keychain that refused to unlock).
NotFound
The requested entry does not exist.
Backend(String)
An OS-native error the store couldn’t classify — usually surfaced verbatim from the underlying keychain API.
InvalidJson(String)
A JSON helper was used but the stored value wasn’t valid JSON.
Trait Implementations§
Source§impl Debug for SecretError
impl Debug for SecretError
Source§impl Display for SecretError
impl Display 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()
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