Skip to main content

NNPushHandler

Trait NNPushHandler 

Source
pub trait NNPushHandler:
    Send
    + Sync
    + 'static {
    // Required method
    fn on_push<'life0, 'async_trait>(
        &'life0 self,
        cmd_id: u16,
        body: Bytes,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

推送处理器 trait

Required Methods§

Source

fn on_push<'life0, 'async_trait>( &'life0 self, cmd_id: u16, body: Bytes, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

处理后端推送

Implementors§