pub trait Middleware: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn run<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
m_ctx: &'life1 mut MiddlewareContext<'life2>,
next: &'life3 mut dyn NextMiddleware,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}