pub enum SessionStoreErrorCode {
SessionNotFound,
SessionAlreadyExists,
SequenceConflict,
InvalidRecord,
InvalidReference,
UnsupportedSchemaVersion,
CorruptionDetected,
TransactionFailed,
StorageUnavailable,
}Expand description
Stable storage failure classification shared by session-store adapters.
Variants§
SessionNotFound
The requested session does not exist.
SessionAlreadyExists
Creation was requested for an existing session.
SequenceConflict
A writer supplied a stale or otherwise incorrect expected sequence.
InvalidRecord
A durable record is malformed for the session state machine.
InvalidReference
A durable record references an unknown or incompatible entity.
UnsupportedSchemaVersion
The record or archive schema version is unsupported.
CorruptionDetected
Stored source facts violate append-only log invariants.
TransactionFailed
An atomic transaction could not be committed.
The storage adapter is unavailable.
Trait Implementations§
Source§impl Clone for SessionStoreErrorCode
impl Clone for SessionStoreErrorCode
Source§fn clone(&self) -> SessionStoreErrorCode
fn clone(&self) -> SessionStoreErrorCode
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 moreimpl Copy for SessionStoreErrorCode
Source§impl Debug for SessionStoreErrorCode
impl Debug for SessionStoreErrorCode
Source§impl<'de> Deserialize<'de> for SessionStoreErrorCode
impl<'de> Deserialize<'de> for SessionStoreErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionStoreErrorCode
Source§impl PartialEq for SessionStoreErrorCode
impl PartialEq for SessionStoreErrorCode
Source§impl Serialize for SessionStoreErrorCode
impl Serialize for SessionStoreErrorCode
impl StructuralPartialEq for SessionStoreErrorCode
Auto Trait Implementations§
impl Freeze for SessionStoreErrorCode
impl RefUnwindSafe for SessionStoreErrorCode
impl Send for SessionStoreErrorCode
impl Sync for SessionStoreErrorCode
impl Unpin for SessionStoreErrorCode
impl UnsafeUnpin for SessionStoreErrorCode
impl UnwindSafe for SessionStoreErrorCode
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