Enum secret_service::Error
source · #[non_exhaustive]pub enum Error {
Crypto(&'static str),
Zbus(Error),
ZbusFdo(Error),
Zvariant(Error),
Locked,
NoResult,
Prompt,
Unavailable,
}
Expand description
An error that could occur interacting with the secret service dbus interface.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Crypto(&'static str)
An error occured decrypting a response message.
Zbus(Error)
A call into the secret service provider failed.
ZbusFdo(Error)
A call into a standard dbus interface failed.
Zvariant(Error)
Serializing or deserializing a dbus message failed.
Locked
A secret service interface was locked and can’t return any information about its contents.
NoResult
No object was found in the object for the request.
Prompt
An authorization prompt was dismissed, but is required to continue.
A secret service provider, or a session to connect to one, was found on the system.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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