pub enum ConfigSecretsError {
EncryptionFailed,
DecryptionFailed,
CiphertextTooShort,
InvalidEncoding(String),
InvalidKeyLength(usize),
InvalidUtf8(String),
UnclosedBlock(String),
IoError(String),
}Expand description
Errors that can occur during configuration secret management.
Variants§
EncryptionFailed
Failed to encrypt the data.
DecryptionFailed
Failed to decrypt the data (e.g., wrong key or tampered ciphertext).
CiphertextTooShort
The ciphertext is too short to contain a valid nonce.
InvalidEncoding(String)
The provided string is not valid alphanumeric encoding.
InvalidKeyLength(usize)
The provided key has an invalid length (expected 32 bytes).
InvalidUtf8(String)
The decrypted data is not valid UTF-8.
UnclosedBlock(String)
A marker block (e.g., ENCRYPT( or SECRET() was not properly closed.
IoError(String)
An I/O error occurred while reading or writing a file.
Trait Implementations§
Source§impl Clone for ConfigSecretsError
impl Clone for ConfigSecretsError
Source§fn clone(&self) -> ConfigSecretsError
fn clone(&self) -> ConfigSecretsError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigSecretsError
impl Debug for ConfigSecretsError
Source§impl Display for ConfigSecretsError
impl Display for ConfigSecretsError
Source§impl Error for ConfigSecretsError
impl Error for ConfigSecretsError
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()
Source§impl PartialEq for ConfigSecretsError
impl PartialEq for ConfigSecretsError
impl Eq for ConfigSecretsError
impl StructuralPartialEq for ConfigSecretsError
Auto Trait Implementations§
impl Freeze for ConfigSecretsError
impl RefUnwindSafe for ConfigSecretsError
impl Send for ConfigSecretsError
impl Sync for ConfigSecretsError
impl Unpin for ConfigSecretsError
impl UnwindSafe for ConfigSecretsError
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