IntoResponse

Trait IntoResponse 

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

Trait for types that can be converted into an HTTP response

Required Methods§

Source

fn into_response(self) -> Response<Full<Bytes>>

Convert self into a Response

Implementations on Foreign Types§

Source§

impl IntoResponse for &'static str

Source§

impl IntoResponse for ()

Source§

impl IntoResponse for String

Source§

impl IntoResponse for Response<Full<Bytes>>

Source§

impl IntoResponse for StatusCode

Source§

impl<R> IntoResponse for (StatusCode, HeaderMap, R)
where R: IntoResponse,

Source§

impl<R> IntoResponse for (StatusCode, R)
where R: IntoResponse,

Source§

impl<T, E> IntoResponse for Result<T, E>

Implementors§