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§
- Inert
TorClient - A Tor client that is not runnable.
- Stream
Prefs - Preferences for how to route a stream over the Tor network.
- TorClient
- An active client session on the Tor network.
Enums§
- Bootstrap
Behavior - Preferences for whether a
TorClient
should bootstrap on its own or not. - Dormant
Mode - What level of sleep to put a Tor client into.
- Stream
Isolation 🔒Preference - 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)