spin_sdk::http

Trait IntoResponse

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

A trait for any type that can be turned into a Response

Required Methods§

Source

fn into_response(self) -> Response

Turn self into a Response

Implementations on Foreign Types§

Source§

impl IntoResponse for Infallible

Source§

impl IntoResponse for Box<dyn Error>

Source§

impl IntoResponse for Error

Source§

impl<B> IntoResponse for Response<B>
where B: IntoBody,

Source§

impl<R: IntoResponse, E: IntoResponse> IntoResponse for Result<R, E>

Implementors§