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§

source

type Fmt: Debug + Send + Sync

The error response format.

Required Methods§

source

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.

Implementors§