pub trait AsyncCallback: Send + Sync {
    // Required method
    fn call(&self, ctx: Ctx) -> BoxFuture<'static, Result<()>>;
}

Required Methods§

source

fn call(&self, ctx: Ctx) -> BoxFuture<'static, Result<()>>

Implementors§

source§

impl<F, Fut> AsyncCallback for F
where F: Fn(Ctx) -> Fut + Send + Sync, Fut: Future<Output = Result<()>> + Send + 'static,