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§
Sourcefn into_invocation_response(self) -> Response
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".