Trait sc_consensus_slots::SlotWorker [−][src]
A worker that should be invoked at every new slot.
Associated Types
type OnSlot: Future<Output = Result<(), Error>>
[src]
The type of the future that will be returned when a new slot is triggered.
Required methods
fn on_slot(
&mut self,
chain_head: B::Header,
slot_info: SlotInfo
) -> Self::OnSlot
[src]
&mut self,
chain_head: B::Header,
slot_info: SlotInfo
) -> Self::OnSlot
Called when a new slot is triggered.