Skip to main content

IntoResponse

Trait IntoResponse 

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

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoResponse for &'static str

Source§

impl IntoResponse for ()

Source§

impl IntoResponse for Bytes

Source§

impl IntoResponse for String

Source§

impl IntoResponse for Vec<u8>

Implementors§

Source§

impl IntoResponse for Body

Source§

impl IntoResponse for Caching

Available on crate feature fs only.
Source§

impl IntoResponse for File

Available on crate feature fs only.
Source§

impl IntoResponse for PartialFile

Available on crate feature fs only.
Source§

impl IntoResponse for Response

Source§

impl IntoResponse for StatusCode