Trait axum::error_handling::HandleErrorExt[][src]

pub trait HandleErrorExt<B>: Service<Request<B>> + Sized {
    fn handle_error<F>(self, f: F) -> HandleError<Self, F, B> { ... }
}
Expand description

Extension trait to Service for handling errors by mapping them to responses.

See module docs for more details on axum’s error handling model.

Provided methods

Apply a HandleError middleware.

Implementors