Module tor_config::path

source ·
Expand description

A path type exposed from the configuration crate

This type allows the user to specify paths as strings, with some support for tab expansion and user directory support.

Structs§

  • A path in a configuration file: tilde expansion is performed, along with expansion of certain variables.
  • Inner implementation of PathInner:Literal

Enums§

  • An error that has occurred while expanding a path.
  • PathInner 🔒
    Inner implementation of CfgPath

Functions§

  • base_dirs 🔒 expand-paths
    Return a UserDirs object for the current user.
  • expand 🔒 expand-paths
    Helper: expand a directory given as a string.
  • get_env 🔒 expand-paths
    Shellexpand helper: Expand a shell variable if we can.
  • get_home 🔒 expand-paths
    Shellexpand helper: return the user’s home directory if we can.
  • get_program_dir 🔒 expand-paths
    Shellexpand helper: return the directory holding the currently executing program.
  • project_dirs 🔒 expand-paths
    Return a ProjectDirs object for the Arti project.