pub enum VaultError {
NotFound(String),
Backend(String),
Io(Error),
}Expand description
Error type for vault operations.
Returned by VaultProvider::get_secret on failure.
The Backend(String) variant is the escape hatch for third-party vault implementations:
format the underlying error into the String when no more specific variant applies.
Variants§
NotFound(String)
Backend(String)
Generic backend failure. Third-party vault implementors should use this variant
to surface errors that do not fit NotFound or Io.
Io(Error)
Trait Implementations§
Source§impl Debug for VaultError
impl Debug for VaultError
Source§impl Display for VaultError
impl Display for VaultError
Source§impl Error for VaultError
impl Error for VaultError
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 VaultError
impl !RefUnwindSafe for VaultError
impl Send for VaultError
impl Sync for VaultError
impl Unpin for VaultError
impl UnsafeUnpin for VaultError
impl !UnwindSafe for VaultError
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