pub trait IntoHttpErrorResponse {
// Required method
fn into_response(error: Box<dyn HttpError>) -> Response;
}
Expand description
Trait for implementing different response converter implementations the default is TextErrorResponse
Required Methods§
Sourcefn into_response(error: Box<dyn HttpError>) -> Response
fn into_response(error: Box<dyn HttpError>) -> Response
Handles converting the error into an HTTP response
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.