Trait anyhow_http::response::IntoHttpErrorResponse
source · pub trait IntoHttpErrorResponse {
type Fmt: Debug + Send + Sync;
// Required method
fn into_http_error_response(
http_error: HttpError<Self::Fmt>
) -> HttpErrorResponse<Self::Fmt>;
}Expand description
Trait for generating error responses.
Types that implement IntoHttpErrorResponse are used as generic argument to HttpError.
Required Associated Types§
Required Methods§
sourcefn into_http_error_response(
http_error: HttpError<Self::Fmt>
) -> HttpErrorResponse<Self::Fmt>
fn into_http_error_response( http_error: HttpError<Self::Fmt> ) -> HttpErrorResponse<Self::Fmt>
Creates an error response.
Object Safety§
This trait is not object safe.