Module tor_config::sources
source · [−]Expand description
ConfigurationSources
: Helper for handling configuration files
This module provides ConfigurationSources
.
This layer brings together the functionality of config::File
,
fs_mistrust
and tor_config::cmdline
.
A ConfigurationSources
records a set of filenames of TOML files,
ancillary instructions for reading them,
and also a set of command line options.
Usually, call ConfigurationSources::from_cmdline
,
perhaps set_mistrust
,
and finally load
.
The resulting config::Config
can then be deserialized.
Structs
A description of where to find our configuration options.