MsgModule

Trait MsgModule 

Source
pub trait MsgModule {
    // Required methods
    fn type_url(&self) -> String;
    fn handle_msg<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        index: usize,
        msg: &'life1 Any,
        tx: &'life2 ParsedTransactionResponse,
        storage_tx: &'life3 mut dyn NyxdScraperTransaction,
    ) -> Pin<Box<dyn Future<Output = Result<(), ScraperError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Methods§

Source

fn type_url(&self) -> String

Source

fn handle_msg<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 mut self, index: usize, msg: &'life1 Any, tx: &'life2 ParsedTransactionResponse, storage_tx: &'life3 mut dyn NyxdScraperTransaction, ) -> Pin<Box<dyn Future<Output = Result<(), ScraperError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§