IInternalBotNotificationCallProducer

Trait IInternalBotNotificationCallProducer 

Source
pub trait IInternalBotNotificationCallProducer: Send + Sync {
    // Required method
    fn handle<'life0, 'async_trait>(
        &'life0 mut self,
        data: Box<dyn Any + Sync + Send>,
        options: Box<dyn Any + Sync + Send>,
        request_context: RequestContext,
    ) -> Pin<Box<dyn Future<Output = CommandResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Возвращает тип данным и вызывает обработчик

Required Methods§

Source

fn handle<'life0, 'async_trait>( &'life0 mut self, data: Box<dyn Any + Sync + Send>, options: Box<dyn Any + Sync + Send>, request_context: RequestContext, ) -> Pin<Box<dyn Future<Output = CommandResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§