[][src]Trait handle::Handle

pub trait Handle<'a, Context> where
    Self: Send + Sync + 'static, 
{ type Output; #[must_use] fn call(
        &'a self,
        cx: &'a mut Context
    ) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>; }

A handle trait for asynchronous context pipeline.

Associated Types

type Output

Returns Output

Loading content...

Required methods

#[must_use]fn call(
    &'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

Loading content...

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]

type Output = Output

Loading content...