Skip to main content

ServerJsonRpcMessage

Type Alias ServerJsonRpcMessage 

Source
pub type ServerJsonRpcMessage = JsonRpcMessage<ServerRequest, ServerResult, ServerNotification>;

Aliased Type§

pub enum ServerJsonRpcMessage {
    Request(JsonRpcRequest<ServerRequest>),
    Response(JsonRpcResponse<ServerResult>),
    Notification(JsonRpcNotification<ServerNotification>),
    Error(JsonRpcError),
}

Variants§

§

Request(JsonRpcRequest<ServerRequest>)

A single request expecting a response

§

Response(JsonRpcResponse<ServerResult>)

A response to a previous request

§

Notification(JsonRpcNotification<ServerNotification>)

A one-way notification (no response expected)

§

Error(JsonRpcError)

An error response