Skip to main content

Middleware

Trait Middleware 

Source
pub trait Middleware: Send + Sync {
    // Required method
    fn call(&self, ctx: Context, next: &dyn Fn(Context) -> Response) -> Response;
}

Required Methods§

Source

fn call(&self, ctx: Context, next: &dyn Fn(Context) -> Response) -> Response

Implementors§