pub enum OptimisticCommandError<AggregateError, Position, StoreError, CodecError>{
Aggregate(AggregateError),
Concurrency(ConcurrencyConflict<Position>),
Projection(ProjectionError<StoreError, CodecError>),
Codec(CodecError),
Store(StoreError),
}Expand description
Error type for optimistic command execution (includes concurrency).
Variants§
Aggregate(AggregateError)
Concurrency(ConcurrencyConflict<Position>)
Projection(ProjectionError<StoreError, CodecError>)
Codec(CodecError)
Store(StoreError)
Trait Implementations§
Source§impl<AggregateError: Debug, Position, StoreError, CodecError> Debug for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>
impl<AggregateError: Debug, Position, StoreError, CodecError> Debug for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>
Source§impl<AggregateError, Position, StoreError, CodecError> Display for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>where
Position: Debug,
StoreError: Error + 'static + Display,
CodecError: Error + 'static + Display,
AggregateError: Display,
ConcurrencyConflict<Position>: Display,
ProjectionError<StoreError, CodecError>: Display,
impl<AggregateError, Position, StoreError, CodecError> Display for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>where
Position: Debug,
StoreError: Error + 'static + Display,
CodecError: Error + 'static + Display,
AggregateError: Display,
ConcurrencyConflict<Position>: Display,
ProjectionError<StoreError, CodecError>: Display,
Source§impl<AggregateError, Position, StoreError, CodecError> Error for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>
impl<AggregateError, Position, StoreError, CodecError> Error for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>
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> Freeze for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>
impl<AggregateError, Position, StoreError, CodecError> RefUnwindSafe for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>where
AggregateError: RefUnwindSafe,
CodecError: RefUnwindSafe,
StoreError: RefUnwindSafe,
Position: RefUnwindSafe,
impl<AggregateError, Position, StoreError, CodecError> Send for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>
impl<AggregateError, Position, StoreError, CodecError> Sync for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>
impl<AggregateError, Position, StoreError, CodecError> Unpin for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>
impl<AggregateError, Position, StoreError, CodecError> UnwindSafe for OptimisticCommandError<AggregateError, Position, StoreError, CodecError>where
AggregateError: UnwindSafe,
CodecError: UnwindSafe,
StoreError: 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