pub enum CommandDispatchError<HE>{
UnitOfWorkFactory(UnitOfWorkFactoryError),
UnitOfWork(UnitOfWorkError),
Idempotency(IdempotencyError),
Handler(HE),
InProgress {
message_id: MessageId,
},
PreviousFailure(CommandFailureReport),
Hasher(CommandHasherError),
Json(Error),
}Variants§
UnitOfWorkFactory(UnitOfWorkFactoryError)
UnitOfWork(UnitOfWorkError)
Idempotency(IdempotencyError)
Handler(HE)
InProgress
PreviousFailure(CommandFailureReport)
Hasher(CommandHasherError)
Json(Error)
Trait Implementations§
Source§impl<HE> Debug for CommandDispatchError<HE>
impl<HE> Debug for CommandDispatchError<HE>
Source§impl<HE> Display for CommandDispatchError<HE>
impl<HE> Display for CommandDispatchError<HE>
Source§impl<HE> Error for CommandDispatchError<HE>
impl<HE> Error for CommandDispatchError<HE>
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<HE> From<CommandHasherError> for CommandDispatchError<HE>
impl<HE> From<CommandHasherError> for CommandDispatchError<HE>
Source§fn from(source: CommandHasherError) -> Self
fn from(source: CommandHasherError) -> Self
Converts to this type from the input type.
Source§impl<HE> From<Error> for CommandDispatchError<HE>
impl<HE> From<Error> for CommandDispatchError<HE>
Source§impl<HE> From<IdempotencyError> for CommandDispatchError<HE>
impl<HE> From<IdempotencyError> for CommandDispatchError<HE>
Source§fn from(source: IdempotencyError) -> Self
fn from(source: IdempotencyError) -> Self
Converts to this type from the input type.
Source§impl<HE> From<UnitOfWorkError> for CommandDispatchError<HE>
impl<HE> From<UnitOfWorkError> for CommandDispatchError<HE>
Source§fn from(source: UnitOfWorkError) -> Self
fn from(source: UnitOfWorkError) -> Self
Converts to this type from the input type.
Source§impl<HE> From<UnitOfWorkFactoryError> for CommandDispatchError<HE>
impl<HE> From<UnitOfWorkFactoryError> for CommandDispatchError<HE>
Source§fn from(source: UnitOfWorkFactoryError) -> Self
fn from(source: UnitOfWorkFactoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<HE> Freeze for CommandDispatchError<HE>where
HE: Freeze,
impl<HE> !RefUnwindSafe for CommandDispatchError<HE>
impl<HE> Send for CommandDispatchError<HE>
impl<HE> Sync for CommandDispatchError<HE>
impl<HE> Unpin for CommandDispatchError<HE>where
HE: Unpin,
impl<HE> !UnwindSafe for CommandDispatchError<HE>
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