[−][src]Trait handle::Handle
A handle trait for asynchronous context pipeline.
Associated Types
type Output
Returns Output
Required methods
#[must_use]fn call(
&'a self,
cx: &'a mut Context
) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
&'a self,
cx: &'a mut Context
) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
Invokes the handler within the given Context
and then returns Output
Implementors
impl<'a, Context, Output, F, Fut> Handle<'a, Context> for F where
F: Send + Sync + 'static + Fn(&'a mut Context) -> Fut,
Fut: Future<Output = Output> + Send + 'a,
Context: 'a,
[src]
F: Send + Sync + 'static + Fn(&'a mut Context) -> Fut,
Fut: Future<Output = Output> + Send + 'a,
Context: 'a,