pub trait IntoResponse {
type Output: Serialize + Clone;
// Required method
fn into_response(self) -> ResponsePayload<'static, Self::Output>;
}
Available on crate feature
server
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§
sourcefn 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.