Skip to main content

JoinHandler

Trait JoinHandler 

Source
pub trait JoinHandler: Send + Sync {
    // Required method
    fn call<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 mut JoinContext,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn call<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 mut JoinContext, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl<F, Fut> JoinHandler for F
where F: Fn(&mut JoinContext) -> Fut + Send + Sync, Fut: Future<Output = Result<()>> + Send,