pub type ClientJsonRpcMessage = JsonRpcMessage<ClientRequest, ClientResult, ClientNotification>;Aliased Type§
pub enum ClientJsonRpcMessage {
Request(JsonRpcRequest<ClientRequest>),
Response(JsonRpcResponse<ClientResult>),
Notification(JsonRpcNotification<ClientNotification>),
Error(JsonRpcError),
}Variants§
Request(JsonRpcRequest<ClientRequest>)
A single request expecting a response
Response(JsonRpcResponse<ClientResult>)
A response to a previous request
Notification(JsonRpcNotification<ClientNotification>)
A one-way notification (no response expected)
Error(JsonRpcError)
An error response