pub enum Error {
Show 17 variants
Crypto(String),
KeyDerivation(String),
Encryption(String),
Decryption(String),
Vault(String),
SecretNotFound(String),
SecretExists(String),
VaultNotInitialized(String),
VaultExists(String),
InvalidVaultVersion {
got: u32,
expected: u32,
},
Io(Error),
Serialization(String),
Deserialization(String),
InvalidInput(String),
AuthenticationFailed(String),
PermissionDenied(String),
Other(String),
}Expand description
Error types for Anubis Vault
Like Anubis weighing hearts against the feather of Ma’at, these errors reveal when something is not in balance.
Variants§
Crypto(String)
Cryptographic operation failed
KeyDerivation(String)
Key derivation failed
Encryption(String)
Encryption failed
Decryption(String)
Decryption failed (Anubis rejects the unworthy)
Vault(String)
Vault operation failed
SecretNotFound(String)
Secret not found
SecretExists(String)
Secret already exists
VaultNotInitialized(String)
Vault not initialized (Anubis’s chamber has not been consecrated)
VaultExists(String)
Vault already exists (Anubis’s seal is already in place)
InvalidVaultVersion
Invalid vault version (Ancient seal unrecognized)
Io(Error)
I/O error
Serialization(String)
Serialization error
Deserialization(String)
Deserialization error
InvalidInput(String)
Invalid input
AuthenticationFailed(String)
Authentication failed (You are not worthy to pass)
PermissionDenied(String)
Permission denied (Only the worthy may enter)
Other(String)
Generic error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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