Trait IntoResponse
pub trait IntoResponse {
type Output: Serialize + Clone;
// Required method
fn into_response(self) -> ResponsePayload<'static, Self::Output>;
}Available on crate feature
server-core only.Expand description
Something that can be converted into a JSON-RPC method call response.
If the value couldn’t be serialized/encoded, jsonrpsee will sent out an error
to the client response could not be serialized.
Required Associated Types§
Required Methods§
fn into_response(self) -> ResponsePayload<'static, Self::Output>
fn into_response(self) -> ResponsePayload<'static, Self::Output>
Something that can be converted into a JSON-RPC method call response.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".