Enum eventsourced::SpawnError
source · pub enum SpawnError {
LoadSnapshot(Box<dyn StdError + Send + Sync>),
InvalidLastSeqNo(Option<NonZeroU64>, Option<NonZeroU64>),
LastNonZeroU64(Box<dyn StdError + Send + Sync>),
EvtsById(Box<dyn StdError + Send + Sync>),
NextEvt(Box<dyn StdError + Send + Sync>),
}Expand description
Error from spawning an event sourced entity.
Variants§
LoadSnapshot(Box<dyn StdError + Send + Sync>)
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(Box<dyn StdError + Send + Sync>)
The last seqence number cannot be obtained from the event log.
EvtsById(Box<dyn StdError + Send + Sync>)
Events by ID cannot be obtained from the event log.
NextEvt(Box<dyn StdError + Send + Sync>)
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