Trait IntoResponse

Source
pub trait IntoResponse {
    type Body: HttpBody + Send + Sync + 'static;

    // Required method
    fn into_response(self) -> Response<Self::Body>;
}

Required Associated Types§

Source

type Body: HttpBody + Send + Sync + 'static

Required Methods§

Source

fn into_response(self) -> Response<Self::Body>

Implementors§

Source§

impl<T> IntoResponse for T
where T: Display,