pub fn set_state_dir(path: PathBuf)
Set the state directory override (from --state-dir CLI arg). Must be called before any state_dir() calls. Subsequent calls are ignored.
--state-dir
state_dir()