InstructionHandler

Trait InstructionHandler 

Source
pub trait InstructionHandler: Send + Sync {
    // Required method
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 HandlerContext,
        instruction: Instruction,
    ) -> Pin<Box<dyn Future<Output = Option<InstructionReply>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn handle<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 HandlerContext, instruction: Instruction, ) -> Pin<Box<dyn Future<Output = Option<InstructionReply>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§