#[non_exhaustive]pub enum EventsourcedError<DomainErr> {
Journal(JournalError),
Codec(String),
PermitDenied,
Domain(DomainErr),
}Expand description
Recovery / handler errors that propagate out of Eventsourced.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<DomainErr: Debug> Debug for EventsourcedError<DomainErr>
impl<DomainErr: Debug> Debug for EventsourcedError<DomainErr>
Source§impl<DomainErr> Display for EventsourcedError<DomainErr>where
DomainErr: Display,
impl<DomainErr> Display for EventsourcedError<DomainErr>where
DomainErr: Display,
Source§impl<DomainErr> Error for EventsourcedError<DomainErr>
impl<DomainErr> Error for EventsourcedError<DomainErr>
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<DomainErr> From<JournalError> for EventsourcedError<DomainErr>
impl<DomainErr> From<JournalError> for EventsourcedError<DomainErr>
Source§fn from(source: JournalError) -> Self
fn from(source: JournalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<DomainErr> Freeze for EventsourcedError<DomainErr>where
DomainErr: Freeze,
impl<DomainErr> RefUnwindSafe for EventsourcedError<DomainErr>where
DomainErr: RefUnwindSafe,
impl<DomainErr> Send for EventsourcedError<DomainErr>where
DomainErr: Send,
impl<DomainErr> Sync for EventsourcedError<DomainErr>where
DomainErr: Sync,
impl<DomainErr> Unpin for EventsourcedError<DomainErr>where
DomainErr: Unpin,
impl<DomainErr> UnsafeUnpin for EventsourcedError<DomainErr>where
DomainErr: UnsafeUnpin,
impl<DomainErr> UnwindSafe for EventsourcedError<DomainErr>where
DomainErr: UnwindSafe,
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