Function finchers_ext::abort [] [src]

pub fn abort<F, E>(f: F) -> Abort<F> where
    F: Fn(&mut Context) -> E + Send + Sync,
    E: Into<Error> + Send

Create an endpoint which always abort the incoming request with an error of E.