pub trait EventListenerAsyncRoutine<P, R>: Send + Sync + 'staticwhere
    P: Send + Sync + 'static,
    R: 'static,{
    // Required method
    fn call<'life0, 'life1, 'async_trait>(
        &'life0 self,
        param: &'life1 P
    ) -> Pin<Box<dyn Future<Output = BuckyResult<R>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn call<'life0, 'life1, 'async_trait>( &'life0 self, param: &'life1 P ) -> Pin<Box<dyn Future<Output = BuckyResult<R>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

source§

impl<F, Fut, P, R> EventListenerAsyncRoutine<P, R> for Fwhere P: Send + Sync + 'static, R: 'static, F: Send + Sync + 'static + Fn(&P) -> Fut, Fut: Future<Output = BuckyResult<R>> + Send + 'static,