pub enum OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>where
Position: Debug,
StoreError: Error + 'static,
CodecError: Error + 'static,
SnapshotError: Error + 'static,{
Aggregate(AggregateError),
Concurrency(ConcurrencyConflict<Position>),
Projection(ProjectionError<StoreError, CodecError>),
Codec(CodecError),
Store(StoreError),
Snapshot(SnapshotError),
}Expand description
Error type for snapshot-enabled optimistic command execution (includes concurrency).
Variants§
Aggregate(AggregateError)
Concurrency(ConcurrencyConflict<Position>)
Projection(ProjectionError<StoreError, CodecError>)
Codec(CodecError)
Store(StoreError)
Snapshot(SnapshotError)
Trait Implementations§
Source§impl<AggregateError: Debug, Position, StoreError, CodecError, SnapshotError> Debug for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
impl<AggregateError: Debug, Position, StoreError, CodecError, SnapshotError> Debug for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
Source§impl<AggregateError, Position, StoreError, CodecError, SnapshotError> Display for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
impl<AggregateError, Position, StoreError, CodecError, SnapshotError> Display for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
Source§impl<AggregateError, Position, StoreError, CodecError, SnapshotError> Error for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
impl<AggregateError, Position, StoreError, CodecError, SnapshotError> Error for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<AggregateError, Position, StoreError, CodecError, SnapshotError> Freeze for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
impl<AggregateError, Position, StoreError, CodecError, SnapshotError> RefUnwindSafe for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>where
AggregateError: RefUnwindSafe,
CodecError: RefUnwindSafe,
StoreError: RefUnwindSafe,
SnapshotError: RefUnwindSafe,
Position: RefUnwindSafe,
impl<AggregateError, Position, StoreError, CodecError, SnapshotError> Send for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
impl<AggregateError, Position, StoreError, CodecError, SnapshotError> Sync for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
impl<AggregateError, Position, StoreError, CodecError, SnapshotError> Unpin for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>
impl<AggregateError, Position, StoreError, CodecError, SnapshotError> UnwindSafe for OptimisticSnapshotCommandError<AggregateError, Position, StoreError, CodecError, SnapshotError>where
AggregateError: UnwindSafe,
CodecError: UnwindSafe,
StoreError: UnwindSafe,
SnapshotError: UnwindSafe,
Position: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more