pub enum CommandBusError {
LoadFailed {
aggregate_id: String,
source: EventStoreError,
},
HandleFailed {
aggregate_id: String,
message: String,
},
AppendFailed {
aggregate_id: String,
source: EventStoreError,
},
PublishFailed {
aggregate_id: String,
source: EventBusError,
},
InvalidAudit {
aggregate_id: String,
source: AuditError,
},
Other {
message: String,
},
}Expand description
Errors that can occur during command bus operations.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for CommandBusError
impl Debug for CommandBusError
Source§impl Display for CommandBusError
impl Display for CommandBusError
Source§impl Error for CommandBusError
impl Error for CommandBusError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for CommandBusError
impl !UnwindSafe for CommandBusError
impl Freeze for CommandBusError
impl Send for CommandBusError
impl Sync for CommandBusError
impl Unpin for CommandBusError
impl UnsafeUnpin for CommandBusError
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