Skip to main content

state_home_dir

Function state_home_dir 

Source
pub fn state_home_dir() -> PathBuf
🔬This is a nightly-only experimental API. (xdg_basedir #157515)
Available on Unix only.
Expand description

A base directory relative to which user-specific state data should be written.

An application appid would typically be expected to write its state data to {state_home_dir}/{appid}/**/*.

Common kinds of state data include actions history (such as logs, history, recently used files, etc.) and state of the application that can be reused after application restart (such as view, layout, open files, undo history, etc.).