Module raw_response

Module raw_response 

Source
Expand description

JSON-RPC response types.

Structs§

ErrorObject
Details about the JSON-RPC error response.
ErrorResponse
A JSON-RPC “error” response.
OkResponse
A JSON-RPC “result” response.

Enums§

RawResponse
A JSON-RPC response is either a “result” or “error” payload. This represents the shape a message can deserialize into.
ResponseError
An error handed back when we cannot correctly deserialize bytes into our [Response] object.

Constants§

CODE_INTERNAL_ERROR
Internal server error.
CODE_INVALID_PARAMS
Invalid method parameters.
CODE_INVALID_REQUEST
The JSON send was not a valid request object.
CODE_METHOD_NOT_FOUND
THe method does not exist/is not available.
CODE_PARSE_ERROR
Invalid JSON was received by the server.

Type Aliases§

ErrorCode
An error code.