#[non_exhaustive]pub enum SecretError {
NotFound(String),
AccessDenied(String),
BackendError(String),
LeaseExpired(String),
NoResolver(String),
Other(Box<dyn Error + Send + Sync>),
}Expand description
Errors from secret resolution (crate-local, not in layer0).
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.
NotFound(String)
The secret was not found in the backend.
AccessDenied(String)
Access denied by policy.
BackendError(String)
Backend communication failure (network, timeout, etc.).
LeaseExpired(String)
The lease has expired and cannot be renewed.
NoResolver(String)
No resolver registered for this source type.
The string is the source kind tag (from SecretSource::kind()).
Other(Box<dyn Error + Send + Sync>)
Catch-all.
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
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