Enum eventually::aggregate::RehydrateError
source · pub enum RehydrateError<T, I> {
Domain(T),
Inner(I),
}
Expand description
List of possible errors that can be returned by Root::rehydrate_async
.
Variants§
Domain(T)
Error returned during rehydration when the Aggregate Root is applying a Domain Event using Aggregate::apply.
This usually implies the Event Stream for the Aggregate contains corrupted or unexpected data.
Inner(I)
This error is returned by Root::rehydrate_async when the underlying [futures::TryStream] has returned an error.
Trait Implementations§
source§impl<T, I> Display for RehydrateError<T, I>
impl<T, I> Display for RehydrateError<T, I>
source§impl<T, I> Error for RehydrateError<T, I>
impl<T, I> Error for RehydrateError<T, I>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<T, I> RefUnwindSafe for RehydrateError<T, I>where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for RehydrateError<T, I>
impl<T, I> Sync for RehydrateError<T, I>
impl<T, I> Unpin for RehydrateError<T, I>
impl<T, I> UnwindSafe for RehydrateError<T, I>where
I: UnwindSafe,
T: 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