Skip to main content

IntoInvocationResponse

Trait IntoInvocationResponse 

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

Conversion of a handler’s return value into a Response.

It is implemented for every Serialize type and for Response. A stream is not a value: wrap it with Response::stream.

Required Methods§

Source

fn into_invocation_response(self) -> Response

Converts self into a response.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§