pub trait BlockParticipationProvider<Moment, BlockProducer> {
// Required methods
fn blocks_to_process(
moment: &Moment,
) -> impl Iterator<Item = (Moment, BlockProducer)>;
fn discard_processed_blocks(moment: &Moment);
}Expand description
Source of block participation data
Required Methods§
Sourcefn blocks_to_process(
moment: &Moment,
) -> impl Iterator<Item = (Moment, BlockProducer)>
fn blocks_to_process( moment: &Moment, ) -> impl Iterator<Item = (Moment, BlockProducer)>
Returns the block data for processing
Sourcefn discard_processed_blocks(moment: &Moment)
fn discard_processed_blocks(moment: &Moment)
Discards processed data
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.