Module etcetera::base_strategy

source ·
Expand description

These strategies simply provide the user’s configuration, data, and cache directories, without knowing about the application specifically.

Structs

  • This is the strategy created by Apple for use on macOS and iOS devices. It is always used by GUI apps on macOS, and is sometimes used by command-line applications there too. iOS only has GUIs, so all iOS applications follow this strategy. The specification is available here.
  • This strategy follows Windows’ conventions. It seems that all Windows GUI apps, and some command-line ones follow this pattern. The specification is available here.
  • This strategy implements the XDG Base Directories Specification. It is the most common on Linux, but is increasingly being adopted elsewhere.

Traits

  • Provides configuration, data, and cache directories of the current user.

Functions