Trait viz::prelude::Middleware[]

pub trait Middleware<'a, Context>: Send + Sync + 'static {
    type Output;
    fn call(
        &'a self,
        cx: &'a mut Context
    ) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a, Global>>
Notable traits for Pin<P>
impl<P> Future for Pin<P> where
    P: DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
; }
Expand description

A handle trait for asynchronous context pipeline.

Associated Types

The type of value produced on completion.

Required methods

Invokes the handler within the given Context and then returns Output.

Implementors