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 get_source(&self) -> String;
}

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 get_source(&self) -> String

Implementors§