Structs§
- Client
- The Relay WebSocket RPC client.
- Client
Stream - Lower-level
FusedStreaminterface for the client connection. - Close
Frame - A struct representing the close command.
- Close
Reason - Wrapper around the websocket
CloseFrameproviding info about the connection closing reason. - Empty
Response Future - Future that resolves with the RPC response, consuming it and returning
Result<(), Error>. - Fetch
Message Stream - Stream that uses the
irn_batchFetchRPC method to retrieve messages from the Relay. - Inbound
Request - The lower-level inbound RPC request.
- Outbound
Request - An outbound request wrapper created by
create_request(). Intended be used with [ClientStream][crate::client::ClientStream]. - Published
Message - The message received from a subscription.
- Response
Future - Future that resolves with the RPC response for the specified request.
Enums§
- Stream
Event - Possible events produced by the
ClientStream. - Websocket
Client Error
Traits§
- Connection
Handler - Handlers for the RPC stream events.
Functions§
- create_
request - Creates an RPC request and returns a tuple of the request and a response
future. The request is intended to be used with
[
ClientStream][crate::client::ClientStream]. - create_
stream - Opens a connection to the Relay and returns
ClientStreamfor the connection.