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
Error
A failed JSON-RPC response.
Fields
§
error: Box<RawJsonRpcError>Method-specific error data.