Trait ClientCallback

Source
pub trait ClientCallback: Send + Sync {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn process<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data: DataEntity,
        callback: Arc<dyn ClientCallback>,
        client: &'life1 WsClient,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn process<'life0, 'life1, 'async_trait>( &'life0 self, data: DataEntity, callback: Arc<dyn ClientCallback>, client: &'life1 WsClient, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§