Trait treemux::Middleware[][src]

pub trait Middleware: Send + Sync + 'static {
    type Input;
    type Output;
    fn chain(&self, input: Self::Input) -> Self::Output;
}

Associated Types

Loading content...

Required methods

fn chain(&self, input: Self::Input) -> Self::Output[src]

Loading content...

Implementors

impl<F> Middleware for F where
    F: Fn(Handler) -> Handler + Send + Sync + 'static, 
[src]

type Input = Handler

type Output = Handler

Loading content...