Expand description
RPC client (operates uniformly in native and WASM-browser environments).
Re-exports§
Modules§
- error
- Client
Errorenum declaration - prelude
- Convenience module exporting all types required for the client use.
- result
- Client
Resultenum encapsulating clientError
Macros§
- notification
- notification!() macro for declaration of RPC notification handlers
Structs§
- Borsh
Protocol - Borsh RPC message handler and dispatcher
- Connect
Options ConnectOptionsis used to configure theWebSocketconnectivity behavior.- Interface
- Collection of server-side notification handlers
- Json
Protocol - Serde JSON RPC message handler and dispatcher
- Notification
- Options
- RpcClient
- WebSocket
Config - Configuration struct for WebSocket client (native Tungstenite and NodeJs connections only)
Enums§
- Connect
Strategy ConnectionStrategyspecifies how the WebSocketasync fn connect()function should behave during the first-time connectivity phase. @category WebSocket- Ctl