Available on crate feature
client
only.Expand description
Shared utilities for jsonrpsee
clients.
Re-exports§
pub use async_client::Client;
async-client
andasync-wasm-client
pub use async_client::ClientBuilder;
async-client
andasync-wasm-client
pub use error::Error;
Modules§
- async_
client async-client
andasync-wasm-client
- Abstract async client.
- error
- Error type for client(s).
Structs§
- Batch
Response - Batch response.
- Request
IdManager - Keep track of request IDs.
- Subscription
- Represent a client-side subscription which is implemented on top of a bounded channel where it’s possible that the receiver may not keep up with the sender side a.k.a “slow receiver problem”
Enums§
- IdKind
- JSON-RPC request object id data type.
- Received
Message - Message type received from the RPC server.
It can either be plain text data, bytes, or
Pong
messages. - Subscription
Close Reason - The reason why the subscription was closed.
- Subscription
Kind - Subscription kind
Traits§
- ClientT
- JSON-RPC client interface that can make requests and notifications.
- Maybe
Send - Marker trait to determine whether a type implements
Send
or not. - Subscription
ClientT - JSON-RPC client interface that can make requests, notifications and subscriptions.
- Transport
ReceiverT - Transport interface to receive data asynchronous.
- Transport
SenderT - Transport interface to send data asynchronous.
Functions§
- generate_
batch_ id_ range - Generate a range of IDs to be used in a batch request.
Type Aliases§
- Batch
Entry - Represent a single entry in a batch response.