#[non_exhaustive]pub enum StoreError {
Taken,
NotFound,
Stale,
Db(DbError),
Kms(KmsError),
Tampered(String),
Internal(String),
}Expand description
Why a store call refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Taken
The blob id is already this subject’s.
NotFound
No such blob for this subject.
Stale
The record changed since the caller last read it: its revision no
longer matches the ETag the request carried.
Db(DbError)
The database refused the statement.
Kms(KmsError)
The KMS could not open a wrapped DEK.
Tampered(String)
An outer ciphertext did not authenticate.
Internal(String)
Something that should be unreachable: a row is malformed, the RNG failed. Logged, never described to a caller.
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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<BlobError> for StoreError
impl From<BlobError> for StoreError
Source§impl From<DbError> for StoreError
impl From<DbError> for StoreError
Source§impl From<KmsError> for StoreError
impl From<KmsError> for StoreError
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.
Auto Trait Implementations§
impl Freeze for StoreError
impl RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
impl UnwindSafe for StoreError
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