Module rpc

Source
Available on crate feature rpc only.
Expand description

Declare RPC functionality on for the arti-client crate.

Modules§

seal 🔒
module to seal the ClientConnectionError trait.

Structs§

ClientStatusInfo 🔒
Reported bootstrap and health information for a client.
ConnectWithPrefs
RPC special method: make a connection to a chosen address and preferences.
GetClientStatus 🔒
Return current bootstrap and health information for a client.
IsolatedClient
Create a new isolated client instance.
ResolvePtrWithPrefs
RPC special method: reverse-lookup an address with a chosen address and preferences.
ResolveWithPrefs
RPC special method: lookup an address with a chosen address and preferences.
WatchClientStatus 🔒
Run forever, delivering updates about a client’s bootstrap and health information.

Traits§

ClientConnectionError
Type-erased error returned by ClientConnectionTarget.

Functions§

client_connect_with_prefs 🔒
RPC method implementation: start a connection on a TorClient.
client_resolve_ptr_with_prefs 🔒
RPC method implementation: perform a remote DNS reverse lookup using a TorClient.
client_resolve_with_prefs 🔒
RPC method implementation: perform a remote DNS lookup using a TorClient.
get_client_status 🔒
Invocable function to run GetClientStatus on a TorClient.
isolated_client 🔒
RPC method implementation: return a new isolated client based on a given client.
watch_client_status 🔒
Invocable function to run WatchClientStatus on a TorClient.

Type Aliases§

ClientConnectionResult
Type alias for a Result return by ClientConnectionTarget