pub trait IntoResponse: Sealed + Send + 'static {
    fn into_response(self, id: Option<Id>) -> Option<Response>;
    fn is_notification() -> bool;
}
Expand description

A trait implemented by all JSON-RPC response types.

Required Methods

Attempts to construct a Response using Self and a corresponding Id.

Returns true if this is a notification response type.

Implementations on Foreign Types

Support JSON-RPC notification methods.

Support JSON-RPC request methods.

Implementors