pub trait IntoResponse {
    // Required method
    fn into_response(self) -> Response;
}
Expand description

A trait for any type that can be turned into a Response

Required Methods§

source

fn into_response(self) -> Response

Turn self into a Response

Implementations on Foreign Types§

source§

impl IntoResponse for Infallible

source§

impl IntoResponse for Box<dyn Error>

source§

impl IntoResponse for Error

source§

impl<B> IntoResponse for Response<B>
where B: IntoBody,

source§

impl<R: IntoResponse, E: IntoResponse> IntoResponse for Result<R, E>

Implementors§