Trait ghost_crab::block_handler::BlockHandler

source ·
pub trait BlockHandler {
    // Required methods
    fn handle<'life0, 'async_trait>(
        &'life0 self,
        params: BlockContext,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn step(&self) -> u64;
    fn network(&self) -> String;
    fn rpc_url(&self) -> String;
    fn start_block(&self) -> u64;
    fn execution_mode(&self) -> ExecutionMode;
}

Required Methods§

source

fn handle<'life0, 'async_trait>( &'life0 self, params: BlockContext, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn step(&self) -> u64

source

fn network(&self) -> String

source

fn rpc_url(&self) -> String

source

fn start_block(&self) -> u64

source

fn execution_mode(&self) -> ExecutionMode

Implementors§