pub enum SecretError {
Show 16 variants
NotFound {
name: String,
},
ProviderNotFound {
provider: String,
},
AuthenticationFailed {
provider: String,
reason: String,
},
NetworkError(String),
InvalidConfig(String),
EncryptionError(String),
IoError(Error),
JsonError(Error),
YamlError(Error),
InvalidFormat(String),
Timeout,
PermissionDenied {
name: String,
},
Internal(String),
InvalidSecretName {
reason: String,
},
SecretTooLarge {
size: usize,
max_size: usize,
},
RateLimitExceeded(String),
}Expand description
Errors that can occur during secret operations
Variants§
NotFound
ProviderNotFound
AuthenticationFailed
NetworkError(String)
InvalidConfig(String)
EncryptionError(String)
IoError(Error)
JsonError(Error)
YamlError(Error)
InvalidFormat(String)
Timeout
PermissionDenied
Internal(String)
InvalidSecretName
SecretTooLarge
RateLimitExceeded(String)
Implementations§
Source§impl SecretError
impl SecretError
Sourcepub fn provider_not_found(provider: impl Into<String>) -> Self
pub fn provider_not_found(provider: impl Into<String>) -> Self
Create a new ProviderNotFound error
Sourcepub fn auth_failed(
provider: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn auth_failed( provider: impl Into<String>, reason: impl Into<String>, ) -> Self
Create a new AuthenticationFailed error
Sourcepub fn invalid_config(msg: impl Into<String>) -> Self
pub fn invalid_config(msg: impl Into<String>) -> Self
Create a new InvalidConfig error
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()
Source§impl From<Error> for SecretError
impl From<Error> for SecretError
Source§impl From<Error> for SecretError
impl From<Error> for SecretError
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