Skip to main content

Module rpc

Module rpc 

Source
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