pub trait IntoResponse {
// Required method
fn into_response(self) -> Response;
}Required Methods§
fn into_response(self) -> Response
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
impl IntoResponse for &'static str
fn into_response(self) -> Response
Source§impl IntoResponse for ()
impl IntoResponse for ()
fn into_response(self) -> Response
Source§impl IntoResponse for Bytes
impl IntoResponse for Bytes
fn into_response(self) -> Response
Source§impl IntoResponse for String
impl IntoResponse for String
fn into_response(self) -> Response
Source§impl IntoResponse for Vec<u8>
impl IntoResponse for Vec<u8>
fn into_response(self) -> Response
Implementors§
impl IntoResponse for Body
impl IntoResponse for Caching
Available on crate feature
fs only.impl IntoResponse for File
Available on crate feature
fs only.impl IntoResponse for PartialFile
Available on crate feature
fs only.