pub trait Middleware<I, O>:
Send
+ Sync
+ 'static {
// Required method
fn call<'life0, 'async_trait>(
&'life0 self,
input: I,
) -> Pin<Box<dyn Future<Output = O> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Middleware that performs an operation.
Required Methods§
fn call<'life0, 'async_trait>(
&'life0 self,
input: I,
) -> Pin<Box<dyn Future<Output = O> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Implementors§
impl<T, Args, I, O> Middleware<I, O> for Pied<T, Args, I, O>
Implements the middleware trait for the main Pied structure
impl<T, T2, A, B, C> Middleware<A, C> for ConvertMiddleware<T, T2, A, B, C>
Implements the middleware trait on the conversion middleware to make it A -> C