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