Skip to content

RuntimeLayout

Functions

  • resolve - Resolve a runtime layout from an optional explicit root and the process

firma_runtime_state::runtime_paths::RuntimeLayout::resolve

Section titled “firma_runtime_state::runtime_paths::RuntimeLayout::resolve”

Function

Resolve a runtime layout from an optional explicit root and the process environment.

Resolution order is the explicit root, FIRMA_STATE_DIR, and then the platform runtime-directory convention.

Returns an error on Windows when neither LOCALAPPDATA nor TEMP is set.

fn resolve(flag: Option<PathBuf>) -> Result<Self>