pub enum VaultError {
Kdf(String),
Crypto(String),
Tampered,
VolumeLimitExceeded {
max: usize,
},
DocNotFound(String),
Io(Error),
StorageError(String),
Serialization(Error),
}Expand description
The primary error type for all Rose Squared operations.
Variants§
Kdf(String)
Error during key derivation (Argon2id or HKDF).
Crypto(String)
Error during cryptographic operations (AES-GCM).
Tampered
A ciphertext was tampered with or corrupted on the server.
VolumeLimitExceeded
A SWiSSSE volume limit was exceeded.
DocNotFound(String)
The requested document could not be found in the state table.
Io(Error)
Standard I/O error.
StorageError(String)
Error from the underlying storage backend.
Serialization(Error)
Error during bincode serialization/deserialization.
Trait Implementations§
Source§impl Debug for VaultError
impl Debug for VaultError
Source§impl Display for VaultError
impl Display for VaultError
Source§impl Error for VaultError
impl Error for VaultError
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 VaultError
impl !RefUnwindSafe for VaultError
impl Send for VaultError
impl Sync for VaultError
impl Unpin for VaultError
impl UnsafeUnpin for VaultError
impl !UnwindSafe for VaultError
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