arti_client

Module client

Source
Expand description

A general interface for Tor client usage.

To construct a client, run the TorClient::create_bootstrapped method. Once the client is bootstrapped, you can make anonymous connections (“streams”) over the Tor network using TorClient::connect.

Structs§

InertTorClient
A Tor client that is not runnable.
StreamPrefs
Preferences for how to route a stream over the Tor network.
TorClient
An active client session on the Tor network.

Enums§

BootstrapBehavior
Preferences for whether a TorClient should bootstrap on its own or not.
DormantMode
What level of sleep to put a Tor client into.
StreamIsolationPreference 🔒
Record of how we are isolating connections

Functions§

tasks_monitor_dormant 🔒
Monitor dormant_mode and enable/disable periodic tasks as applicable
wrap_err 🔒
Alias for TorError::from(Error)