pub enum BlockMachineOutput<EventStore> {
FrozenBlock(Block<EventStore>),
SlotCommitmentUpdate(SlotCommitmentStatusUpdate),
ForkDetected(ForkDetected),
DeadBlockDetected(DeadBlockDetected),
}Expand description
The different types of outputs produced by the Dragon’s mouth block machine.
Variants§
FrozenBlock(Block<EventStore>)
A fully reconstructed block, ready for processing.
SlotCommitmentUpdate(SlotCommitmentStatusUpdate)
An update on the commitment status of a slot. Note: This is sent when the slot reaches or exceeds the minimum commitment level set during initialization. It is guaranteed that the block for this slot has been sent before this update.
ForkDetected(ForkDetected)
A notification that a fork has been detected.
DeadBlockDetected(DeadBlockDetected)
A notification that a dead block has been detected. Note: All Dead blocks are Forks, but not all Forks are Dead blocks. Dead blocks mostly come from corrupted entries early in the replay process of a slot.
Trait Implementations§
Source§impl<EventStore: Debug> Debug for BlockMachineOutput<EventStore>
impl<EventStore: Debug> Debug for BlockMachineOutput<EventStore>
Source§impl<EventStore> From<Block<EventStore>> for BlockMachineOutput<EventStore>
impl<EventStore> From<Block<EventStore>> for BlockMachineOutput<EventStore>
Source§impl<EventStore> From<DeadBlockDetected> for BlockMachineOutput<EventStore>
impl<EventStore> From<DeadBlockDetected> for BlockMachineOutput<EventStore>
Source§fn from(value: DeadBlockDetected) -> Self
fn from(value: DeadBlockDetected) -> Self
Converts to this type from the input type.
Source§impl<EventStore> From<ForkDetected> for BlockMachineOutput<EventStore>
impl<EventStore> From<ForkDetected> for BlockMachineOutput<EventStore>
Source§fn from(value: ForkDetected) -> Self
fn from(value: ForkDetected) -> Self
Converts to this type from the input type.
Source§impl<EventStore> From<SlotCommitmentStatusUpdate> for BlockMachineOutput<EventStore>
impl<EventStore> From<SlotCommitmentStatusUpdate> for BlockMachineOutput<EventStore>
Source§fn from(value: SlotCommitmentStatusUpdate) -> Self
fn from(value: SlotCommitmentStatusUpdate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<EventStore> Freeze for BlockMachineOutput<EventStore>where
EventStore: Freeze,
impl<EventStore> RefUnwindSafe for BlockMachineOutput<EventStore>where
EventStore: RefUnwindSafe,
impl<EventStore> Send for BlockMachineOutput<EventStore>where
EventStore: Send,
impl<EventStore> Sync for BlockMachineOutput<EventStore>where
EventStore: Sync,
impl<EventStore> Unpin for BlockMachineOutput<EventStore>where
EventStore: Unpin,
impl<EventStore> UnsafeUnpin for BlockMachineOutput<EventStore>where
EventStore: UnsafeUnpin,
impl<EventStore> UnwindSafe for BlockMachineOutput<EventStore>where
EventStore: 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