Trait IntoResponse

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

Required Methods§

Implementations on Foreign Types§

Source§

impl IntoResponse for &'static str

Source§

impl IntoResponse for &'static [u8]

Source§

impl IntoResponse for Cow<'static, str>

Source§

impl IntoResponse for Cow<'static, [u8]>

Source§

impl IntoResponse for ()

Source§

impl IntoResponse for String

Source§

impl IntoResponse for Vec<u8>

Source§

impl<T> IntoResponse for (HeaderMap, T)
where T: IntoResponse,

Source§

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

Source§

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

Implementors§

Source§

impl IntoResponse for BoxBody

Source§

impl IntoResponse for Bytes

Source§

impl IntoResponse for Head

Source§

impl IntoResponse for HeaderMap

Source§

impl IntoResponse for StatusCode

Source§

impl<B> IntoResponse for Response<B>
where B: Body + 'static, B::Error: Into<BoxError>,

Source§

impl<B, F, E> IntoResponse for MapErr<B, F>
where B: Body + 'static, F: FnMut(B::Error) -> E + 'static, E: Into<BoxError>,

Source§

impl<S> IntoResponse for StreamBody<S>
where Self: Body + 'static, <Self as Body>::Error: Into<BoxError>,