Module client

Source
Available on crate feature client only.
Expand description

Shared utilities for jsonrpsee clients.

Re-exports§

pub use async_client::Client;async-client and async-wasm-client
pub use async_client::ClientBuilder;async-client and async-wasm-client
pub use error::Error;

Modules§

async_clientasync-client and async-wasm-client
Abstract async client.
error
Error type for client(s).

Structs§

BatchResponse
Batch response.
MiddlewareMethodResponse
Middleware method response which can be either a method call or a subscription response. and treated differently.
MiddlewareNotifResponse
Middleware notification response.
RawResponse
A raw JSON-RPC response object which can be either a JSON-RPC success or error response.
RequestIdManager
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”
SubscriptionResponse
Represents an active subscription returned by the server.

Enums§

IdKind
JSON-RPC request object id data type.
ReceivedMessage
Message type received from the RPC server. It can either be plain text data, bytes, or Pong messages.
SubscriptionCloseReason
The reason why the subscription was closed.
SubscriptionKind
Subscription kind

Traits§

ClientT
JSON-RPC client interface that can make requests and notifications.
MaybeSend
Marker trait to determine whether a type implements Send or not.
SubscriptionClientT
JSON-RPC client interface that can make requests, notifications and subscriptions.
TransportReceiverT
Transport interface to receive data asynchronous.
TransportSenderT
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§

BatchEntry
Represent a single entry in a batch response.
MiddlewareBatchResponse
Middleware batch response.
RawResponseOwned
Owned version of RawResponse.