#[non_exhaustive]pub enum StoreError {
NotFound,
Conflict,
Unavailable,
Timeout,
Serialization,
Corrupt,
Other {
code: String,
},
}Expand description
Errors raised by persistence adapters.
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.
NotFound
The requested record does not exist for this account. Never reveals whether it exists for another tenant.
Conflict
A uniqueness or compare-and-swap constraint failed.
The store could not be reached.
Timeout
The operation timed out; a write may or may not have landed.
Serialization
A stored payload could not be (de)serialized.
Corrupt
The stored data violates an invariant the adapter relies on.
Other
Adapter-specific failure identified by a stable code.
Trait Implementations§
Source§impl Clone for StoreError
impl Clone for StoreError
Source§fn clone(&self) -> StoreError
fn clone(&self) -> StoreError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StoreError
impl Debug for StoreError
Source§impl<'de> Deserialize<'de> for StoreError
impl<'de> Deserialize<'de> for StoreError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StoreError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StoreError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StoreError
impl Display for StoreError
impl Eq 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 ErrorClassification for StoreError
impl ErrorClassification for StoreError
Source§fn effect_may_have_happened(&self) -> bool
fn effect_may_have_happened(&self) -> bool
May a side effect have happened despite the error?
Source§fn user_message_key(&self) -> &'static str
fn user_message_key(&self) -> &'static str
Key of a user-safe message in the application’s copy catalog.
Source§fn severity(&self) -> ErrorSeverity
fn severity(&self) -> ErrorSeverity
Operational severity.
Source§fn reconciliation_required(&self) -> bool
fn reconciliation_required(&self) -> bool
Must a reconciliation job run before the case is trusted again?
Source§impl PartialEq for StoreError
impl PartialEq for StoreError
Source§impl Serialize for StoreError
impl Serialize for StoreError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StoreError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.