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Β§
- Bootstrap
Setting π - A representation of whether a
TorClientis allowed to bootstrap, and whether it has begun to do so. - Client
Shared π - Shared pieces of a
TorClient, used to implement client functionality. - Inert
TorClient - A Tor client that is not runnable.
- NotConstructed
Inner π - Information stored by a never-bootstrapped
TorClient, used to eventually construct aRunningInnerand bootstrap. - Running
Inner π - Data structures for a βrunningβ client.
- 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
TorClientshould bootstrap on its own or not. - Dormant
Mode - What level of sleep to put a Tor client into.
- Inner π
- A typestate object holding the parts of the client state that we may or may not have depending on whether we are running.
- Stream
Isolation πPreference - Record of how we are isolating connections
FunctionsΒ§
- tasks_
monitor_ πdormant - Monitor
dormant_modeand enable/disable periodic tasks as applicable - wrap_
err π - Alias for TorError::from(Error)