Trait Middleware
treemux
pub trait Middleware: Send + Sync + 'static { type Input; type Output; fn chain(&self, input: Self::Input) -> Self::Output; }
type Input
type Output
fn chain(&self, input: Self::Input) -> Self::Output
impl<F> Middleware for F where F: Fn(Handler) -> Handler + Send + Sync + 'static,
type Input = Handler
type Output = Handler