Trait shio::middleware::Middleware
[−]
[src]
pub trait Middleware: Send + Sync { fn call(&self, next: BoxHandler) -> BoxHandler; fn into_box(self) -> BoxMiddleware
where
Self: Sized + 'static, { ... } }
Required Methods
fn call(&self, next: BoxHandler) -> BoxHandler
Provided Methods
fn into_box(self) -> BoxMiddleware where
Self: Sized + 'static,
Self: Sized + 'static,
Implementors
impl<TFn> Middleware for TFn where
TFn: Send + Sync,
TFn: Fn(BoxHandler) -> BoxHandler,