Enum exocore_chain::engine::Event [−][src]
pub enum Event { Started, StreamDiscontinuity, NewPendingOperation(OperationId), NewChainBlock(BlockOffset), ChainDiverged(BlockOffset), }
Expand description
Events dispatched to handles to notify changes in the different stores.
Variants
The engine is now started
The stream of events hit the maximum buffer size, and some events got discarded. Consumer state should be rebuilt from scratch to prevent having inconsistencies.
An operation added to the pending store.
Tuple Fields of NewPendingOperation
0: OperationId
A new block got added to the chain.
Tuple Fields of NewChainBlock
0: BlockOffset
The chain has diverged from given offset, which mean it will get re-written with new blocks. Operations after this offset should ignored.
Tuple Fields of ChainDiverged
0: BlockOffset
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self