pub type TxJsonRpcMessage<R> = JsonRpcMessage<<R as ServiceRole>::Req, <R as ServiceRole>::Resp, <R as ServiceRole>::Not>;Available on crate features
client or server only.Aliased Type§
pub enum TxJsonRpcMessage<R> {
Request(JsonRpcRequest<<R as ServiceRole>::Req>),
Response(JsonRpcResponse<<R as ServiceRole>::Resp>),
Notification(JsonRpcNotification<<R as ServiceRole>::Not>),
Error(JsonRpcError),
}Variants§
Request(JsonRpcRequest<<R as ServiceRole>::Req>)
A single request expecting a response
Response(JsonRpcResponse<<R as ServiceRole>::Resp>)
A response to a previous request
Notification(JsonRpcNotification<<R as ServiceRole>::Not>)
A one-way notification (no response expected)
Error(JsonRpcError)
An error response