pub enum SecretsError {
KeyLoadFailed(String),
KeySaveFailed(String),
EncryptionFailed(String),
DecryptionFailed(String),
EnvFileReadFailed {
path: String,
reason: String,
},
EnvFileParseFailed {
path: String,
reason: String,
},
EnvVarNotFound {
key: String,
},
WriteFailed(String),
}Expand description
Errors that can occur when working with encrypted secrets and environment files.
Variants§
KeyLoadFailed(String)
Failed to load encryption key from file or environment variable.
KeySaveFailed(String)
Failed to save encryption key to file.
EncryptionFailed(String)
Failed to encrypt a value.
DecryptionFailed(String)
Failed to decrypt a value (e.g., wrong key, corrupted data).
EnvFileReadFailed
Failed to read an environment file.
Fields
EnvFileParseFailed
Failed to parse an environment file.
Fields
EnvVarNotFound
Environment variable not found in the process environment.
WriteFailed(String)
Failed to write output.
Trait Implementations§
Source§impl Debug for SecretsError
impl Debug for SecretsError
Source§impl Display for SecretsError
impl Display for SecretsError
Source§impl Error for SecretsError
impl Error for SecretsError
1.30.0 · 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 SecretsError
impl RefUnwindSafe for SecretsError
impl Send for SecretsError
impl Sync for SecretsError
impl Unpin for SecretsError
impl UnwindSafe for SecretsError
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