Expand description
Types and functions to configure a Tor client.
Some of these are re-exported from lower-level crates.
Re-exportsยง
pub use tor_config::mistrust::BuilderExt as _;
Modulesยง
- Types for configuring how Tor circuits are built.
- Types for configuring how Tor accesses its directory information.
- onion_
service onion-service-service
Types for configuring onion services. - pt
pt-client
Types for configuring pluggable transports. - Types for configuring vanguards.
Macrosยง
- Implement
TryFrom<MultilineListBuilder>
andInto<MultilineListBuilder>
for $Builder. - Define accessor methods for a configuration item which is a list
- Define a list builder struct for use with
define_list_builder_accessors
- expand_
dir ๐Macro to avoid repeating code forexpand_*_dir
functions on StorageConfig - Defines standard impls for a struct with a
Builder
, inclDefault
Structsยง
- Builder for a
BridgeConfig
. - Bridge
List ๐Builder Wrapper struct to help derive_builder find the right types and methods - Configuration for anti-censorship features: bridges and pluggable transports.
- Builder for
BridgesConfig
. - A path in a configuration file: tilde expansion is performed, along with expansion of certain variables.
- Channel configuration
- Builder for
ChannelConfig
. - Configuration for client behavior relating to addresses.
- Builder for
ClientAddrConfig
. - Error from trying to parse a MultilineListBuilder as a list of particular items
- The name of a Pluggable Transport protocol.
- Configuration for where information should be stored on disk.
- Builder for
StorageConfig
. - Configuration for client behavior relating to stream connection timeouts
- Builder for
StreamTimeoutConfig
. - Configuration for system resources used by Tor.
- Builder for
SystemConfig
. - A configuration used to bootstrap a
TorClient
. - Builder for
TorClientConfig
. - Wrapper struct to help derive_builder find the right types and methods
- Identify a type of Transport.
Enumsยง
- Boolean, but with additional
"auto"
option - Bridge
Parse Error bridge-client
Error when parsing a bridge line from a string - An error that has occurred while expanding a path.
- The way to approach a single relay in order to open a channel.
- An error related to an option passed to Arti via a configuration builder.
- An error that occurs while trying to read and process our configuration.
- A configuration file or directory, for use by a
ConfigurationSources
- Configuration item specifiable as a list, or a single multi-line string
- Rules for reconfiguring a running Arti instance.
Constantsยง
- FS_
PERMISSIONS_ CHECKS_ DISABLE_ VAR Deprecated The environment variable we look at when deciding whether to disable FS permissions checking.
Traitsยง
- An object that can be connected to via
ChannelMethod
s.
Functionsยง
- bridges_
enabled ๐Generic logic to check if bridges should be used or not - default_
cache_ ๐dir Return the default cache directory. - Return the filenames for the default user configuration files
- Return the default stream timeout
- Return the default PTR resolve timeout
- Return the default resolve timeout
- default_
extend ๐Helper to add overrides to a default collection. - default_
state_ ๐dir Return the default state directory. - fs_
permissions_ checks_ disabled_ via_ env Deprecated Return true if the environment has been set up to disable FS permissions checking. - Check that the bridge configuration is right
- Determine if we need any pluggable transports.
Type Aliasesยง
- List of configured bridges, as found in the built configuration
- A list of configured transport binaries (type alias for macrology).