MessageHandler

Trait MessageHandler 

Source
pub trait MessageHandler:
    Send
    + Sync
    + Debug {
    // Required method
    fn on_message<'life0, 'async_trait>(
        &'life0 self,
        agent_id: String,
        data: Vec<u8>,
        time: u64,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn on_message<'life0, 'async_trait>( &'life0 self, agent_id: String, data: Vec<u8>, time: u64, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§