pub enum SealedError {
BadInput(String),
BadWrap(String),
WeakParams(String),
ChainBroken(String),
Tampered(String),
Internal(String),
}Expand description
Why the sealed store refused something on the way in, or noticed
tampering on the way out. The route layer turns these into problem+json;
store::StoreError is the storage-shaped superset.
Variants§
BadInput(String)
A field failed its wire grammar.
BadWrap(String)
A wrap failed the shape invariants keys.ts enforces.
WeakParams(String)
A recovery wrap’s Argon2id cost is below the accepted floor — refused, so a record can never be the weak link.
ChainBroken(String)
The audit chain does not follow from genesis; verify named the row.
Tampered(String)
An outer ciphertext did not authenticate.
Internal(String)
The RNG failed, or a state was reached that only a writer outside this module could have produced.
Trait Implementations§
Source§impl Clone for SealedError
impl Clone for SealedError
Source§impl Debug for SealedError
impl Debug for SealedError
Source§impl Display for SealedError
impl Display for SealedError
impl Eq for SealedError
Source§impl Error for SealedError
impl Error for SealedError
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 From<DbError> for SealedError
impl From<DbError> for SealedError
Source§impl From<SealedError> for StoreError
impl From<SealedError> for StoreError
Source§fn from(err: SealedError) -> Self
fn from(err: SealedError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SealedError
impl PartialEq for SealedError
impl StructuralPartialEq for SealedError
Auto Trait Implementations§
impl Freeze for SealedError
impl RefUnwindSafe for SealedError
impl Send for SealedError
impl Sync for SealedError
impl Unpin for SealedError
impl UnsafeUnpin for SealedError
impl UnwindSafe for SealedError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.