Enum eventsourced::SpawnError
source · pub enum SpawnError {
LoadSnapshot(BoxError),
InvalidLastSeqNo(Option<NonZeroU64>, Option<NonZeroU64>),
LastNonZeroU64(BoxError),
EvtsById(BoxError),
NextEvt(BoxError),
}Expand description
Error from spawning an event sourced entity.
Variants§
LoadSnapshot(BoxError)
A snapshot cannot be loaded from the snapshot store.
InvalidLastSeqNo(Option<NonZeroU64>, Option<NonZeroU64>)
The last sequence number is less than the snapshot sequence number.
LastNonZeroU64(BoxError)
The last seqence number cannot be obtained from the event log.
EvtsById(BoxError)
Events by ID cannot be obtained from the event log.
NextEvt(BoxError)
The next event cannot be obtained from the event log.
Trait Implementations§
source§impl Debug for SpawnError
impl Debug for SpawnError
source§impl Display for SpawnError
impl Display for SpawnError
source§impl Error for SpawnError
impl Error for SpawnError
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 !RefUnwindSafe for SpawnError
impl Send for SpawnError
impl Sync for SpawnError
impl Unpin for SpawnError
impl !UnwindSafe for SpawnError
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