#[non_exhaustive]pub enum SessionStoreError {
Show 14 variants
Database(Error),
Decode(DecodeError),
Schema(String),
DesiredState(DesiredStateError),
RevisionConflict {
expected: u64,
committed: u64,
},
IntegerRange(&'static str),
SequenceOverflow,
UnknownSession,
PendingDelivery,
PersistedSessionLimit {
limit: usize,
},
NoPendingDelivery,
DeliveryTokenMismatch,
InvalidDelivery(&'static str),
DeliveryTooLarge {
encoded_bytes: usize,
max_delivery_bytes: usize,
},
}Expand description
Durable session transition failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Database(Error)
SQLite operation failed.
Decode(DecodeError)
A protobuf value in the database was corrupt.
Schema(String)
Durable schema is incompatible or structurally incomplete.
DesiredState(DesiredStateError)
Desired-state validation failed.
RevisionConflict
Desired-state compare-and-swap used a stale revision.
Fields
IntegerRange(&'static str)
A u64 cannot be represented by SQLite’s signed integer storage.
SequenceOverflow
The ordered delivery sequence has no representable successor.
UnknownSession
No durable session exists for this identity.
PendingDelivery
A different delivery already occupies the one-item outbox.
PersistedSessionLimit
Creating another durable session would exceed the configured database bound.
NoPendingDelivery
No delivery is awaiting acknowledgement.
DeliveryTokenMismatch
The acknowledgement does not match the durable outbox item.
InvalidDelivery(&'static str)
A delivery violates a session invariant.
DeliveryTooLarge
A delivery cannot fit within the configured or hard transport limit.
Trait Implementations§
Source§impl Debug for SessionStoreError
impl Debug for SessionStoreError
Source§impl Display for SessionStoreError
impl Display for SessionStoreError
Source§impl Error for SessionStoreError
impl Error for SessionStoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<DecodeError> for SessionStoreError
impl From<DecodeError> for SessionStoreError
Source§fn from(source: DecodeError) -> SessionStoreError
fn from(source: DecodeError) -> SessionStoreError
Source§impl From<DesiredStateError> for SessionStoreError
impl From<DesiredStateError> for SessionStoreError
Source§fn from(source: DesiredStateError) -> SessionStoreError
fn from(source: DesiredStateError) -> SessionStoreError
Source§impl From<Error> for SessionStoreError
impl From<Error> for SessionStoreError
Source§fn from(source: Error) -> SessionStoreError
fn from(source: Error) -> SessionStoreError
Auto Trait Implementations§
impl !RefUnwindSafe for SessionStoreError
impl !UnwindSafe for SessionStoreError
impl Freeze for SessionStoreError
impl Send for SessionStoreError
impl Sync for SessionStoreError
impl Unpin for SessionStoreError
impl UnsafeUnpin for SessionStoreError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request