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

Middleware that transforms around an input to output type.

Required Methods

Asynchronously execute this handler to modify state

Implementors

Middleware implementation for an async function that produces an output

Middleware implementation for an async function that returns nothing

Implements the transform trait on the conversion middleware (for downstream)