Struct tor_config::CfgPath
source ·
[−]pub struct CfgPath(_);
Expand description
A path in a configuration file: tilde expansion is performed, along with expansion of certain variables.
The supported variables are:
ARTI_CACHE
: an arti-specific cache directory.ARTI_CONFIG
: an arti-specific configuration directory.ARTI_SHARED_DATA
: an arti-specific directory in the user’s “shared data” space.ARTI_LOCAL_DATA
: an arti-specific directory in the user’s “local data” space.USER_HOME
: the user’s home directory.
These variables are implemented using the directories
crate, and
so should use appropriate system-specific overrides under the
hood. For more information, see that crate’s documentation.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CfgPath
impl UnwindSafe for CfgPath
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more