Skip to main content

IntoResponse

Trait IntoResponse 

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

Convert a value into a Response.

arcly_http::IntoResponse is a thin re-trait over axum’s so user code never types axum. A blanket impl makes every axum-compatible type automatically satisfy ours.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

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