Skip to main content

RawJsonRpcResponse

Type Alias RawJsonRpcResponse 

Source
pub type RawJsonRpcResponse = Response<Value, Box<RawJsonRpcError>>;
Expand description

A transport-level JSON-RPC response with an opaque result or raw error.

Errors are boxed so their extensible representation does not enlarge every request, notification, and queued frame.

Aliased Type§

pub enum RawJsonRpcResponse {
    Result {
        id: RequestId,
        result: Value,
    },
    Error {
        id: RequestId,
        error: Box<RawJsonRpcError>,
    },
}

Variants§

§

Result

A successful JSON-RPC response.

Fields

§id: RequestId

The id of the request this response answers.

§result: Value

Method-specific response data.

§

Error

A failed JSON-RPC response.

Fields

§id: RequestId

The id of the request this response answers.

§error: Box<RawJsonRpcError>

Method-specific error data.