Module client

Source
Expand description

RPC client (operates uniformly in native and WASM-browser environments).

Re-exports§

pub use crate::client::error::Error;
pub use crate::client::result::Result;

Modules§

error
Client Error enum declaration
prelude
Convenience module exporting all types required for the client use.
result
Client Result enum encapsulating client Error

Macros§

notification
notification!() macro for declaration of RPC notification handlers

Structs§

BorshProtocol
Borsh RPC message handler and dispatcher
ConnectOptions
ConnectOptions is used to configure the WebSocket connectivity behavior.
Interface
Collection of server-side notification handlers
JsonProtocol
Serde JSON RPC message handler and dispatcher
Notification
Options
RpcClient
WebSocketConfig
Configuration struct for WebSocket client (native Tungstenite and NodeJs connections only)

Enums§

ConnectStrategy
ConnectionStrategy specifies how the WebSocket async fn connect() function should behave during the first-time connectivity phase. @category WebSocket
Ctl

Traits§

NotificationHandler
Resolver

Type Aliases§

ConnectResult
ResolverResult
WebSocketError