Trait EventListenerAsyncRoutine

Source
pub trait EventListenerAsyncRoutine<P, R>:
    Send
    + Sync
    + 'static
where 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 F
where P: Send + Sync + 'static, R: 'static, F: Send + Sync + 'static + Fn(&P) -> Fut, Fut: Future<Output = BuckyResult<R>> + Send + 'static,