#[non_exhaustive]pub enum VaultError {
Show 15 variants
Address(BoxedSource),
CaCertificate {
path: String,
source: BoxedSource,
},
ClientBuild(Error),
MissingCredential {
name: String,
},
CredentialFile {
path: String,
source: Error,
},
EmptyCredentialFile {
path: String,
},
Auth {
method: &'static str,
status: u16,
detail: String,
},
Forbidden {
mount: String,
path: String,
detail: String,
},
NotFound {
mount: String,
path: String,
},
Http {
status: u16,
mount: String,
path: String,
detail: String,
},
Body(Error),
Malformed {
context: String,
source: Error,
},
MissingField {
location: String,
field: String,
key: String,
},
Transport(Error),
Exhausted {
attempts: u32,
last: VaultAttemptFailure,
},
}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.
Address(BoxedSource)
CaCertificate
ClientBuild(Error)
MissingCredential
CredentialFile
EmptyCredentialFile
Auth
Forbidden
NotFound
Http
Body(Error)
Malformed
MissingField
Transport(Error)
Exhausted
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()
Source§impl From<VaultError> for SecretsBootstrapError
impl From<VaultError> for SecretsBootstrapError
Source§fn from(source: VaultError) -> Self
fn from(source: VaultError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VaultError
impl !UnwindSafe for VaultError
impl Freeze for VaultError
impl Send for VaultError
impl Sync for VaultError
impl Unpin for VaultError
impl UnsafeUnpin 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