pub trait Middleware<I, O>: Send + Sync + 'static {
    fn call<'life0, 'async_trait>(
        &'life0 self,
        input: I
    ) -> Pin<Box<dyn Future<Output = O> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Middleware that performs an operation.

Required Methods

Implementors

Implements the middleware trait for the main Pied structure

Implements the middleware trait on the conversion middleware to make it A -> C