Expand description
An async JSON-RPC 2.0 client library.
Modules§
- header
- HTTP header types
Structs§
- Error
- JSON-RPC Error Object.
- Failure
- Represents JSON-RPC 2.0 failure response.
- Header
Name - Represents an HTTP header field name
- Header
Value - Represents an HTTP header field value.
- Http
Client - HTTP JSON-RPC client
- Http
Client Builder - A
HttpClientBuilder
can be used to create aHttpClient
with custom configuration. - Map
- Represents a JSON key/value type.
- Method
Call - Represents JSON-RPC 2.0 request which is a method call.
- Notification
- Represents JSON-RPC 2.0 request which is a notification.
- Subscription
Notification - Server notification about something the client is subscribed to.
- Subscription
Notification Params - Parameters of the subscription notification.
- Success
- Represents JSON-RPC 2.0 success response.
- WsClient
- WebSocket JSON-RPC client
- WsClient
Builder - A
WsClientBuilder
can be used to create aHttpClient
with custom configuration. - WsSubscription
- Active subscription on a websocket client.
Enums§
- Call
- Represents single JSON-RPC 2.0 call.
- Error
Code - JSON-RPC Error Code.
- Http
Client Error - The error type for rpc transport.
- Id
- Represents JSON-RPC request id.
- Method
Call Request - JSON-RPC 2.0 Request object (only for method call).
- Output
- Represents success / failure output of JSON-RPC 2.0 response.
- Params
- Represents JSON-RPC 2.0 request parameters.
- Request
- JSON-RPC 2.0 Request object.
- Response
- JSON-RPC 2.0 Response object.
- Value
- Represents any valid JSON value.
- Version
- JSON-RPC Protocol Version.
- WsClient
Error - The error type for websocket rpc transport.
- WsError
- WebSocket error type. Possible WebSocket errors.
Traits§
- Batch
Transport - A JSON-RPC 2.0 transport supporting batch requests.
- Pubsub
Transport - A JSON-RPC 2.0 transport supporting subscriptions.
- Transport
- A JSON-RPC 2.0 transport.