Function rweb::reject::custom[][src]

pub fn custom<T>(err: T) -> Rejection where
    T: Reject

Rejects a request with a custom cause.

A recover filter should convert this Rejection into a Reply, or else this will be returned as a 500 Internal Server Error.