Trait BlockConsumer

Source
pub trait BlockConsumer:
    Sync
    + Send
    + 'static {
    // Required method
    fn consume_block(&self, block: &Block, height: u32);
}
Expand description

Trait for components that need to receive notifications about new blocks.

Required Methods§

Source

fn consume_block(&self, block: &Block, height: u32)

Implementations on Foreign Types§

Source§

impl BlockConsumer for Channel<(Block, u32)>

Source§

fn consume_block(&self, block: &Block, height: u32)

Implementors§