Trait viz::prelude::Middleware[]

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

A handle trait for asynchronous context pipeline.

Associated Types

Returns Output

Required methods

Invokes the handler within the given Context and then returns Output

Implementors