EventHandler

Trait EventHandler 

Source
pub trait EventHandler:
    Send
    + Sync
    + Debug {
    // Required method
    fn on_agent_connected<'life0, 'async_trait>(
        &'life0 self,
        topic: String,
        agent: AgentDetail,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn on_agent_connected<'life0, 'async_trait>( &'life0 self, topic: String, agent: AgentDetail, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§