Skip to content

firma_runtime_state (root module)

Modules

  • error - Error surface for runtime state operations.
  • pidfile - Pid-file read, write, remove, and metadata helpers.
  • process_id - Process identifier types used by runtime state files.
  • runtime_paths - Canonical resolution and layout of Firma runtime files.
  • sidecar_markers - Persistence and observation of per-run sidecar markers.
  • status - Shared coarse-grained liveness state.

Functions

  • resolve_state_dir - Resolve the canonical runtime-state directory and return its root path.

Error surface for runtime state operations.

Pid-file read, write, remove, and metadata helpers.

Process identifier types used by runtime state files.

Function

Resolve the canonical runtime-state directory and return its root path.

Prefer [RuntimeLayout::resolve] when callers also need to derive paths within the runtime directory.

Returns an error when the platform has no usable runtime-directory fallback.

fn resolve_state_dir(flag: Option<std::path::PathBuf>) -> Result<std::path::PathBuf>

Canonical resolution and layout of Firma runtime files.

Linux uses XDG_RUNTIME_DIR. macOS and Windows have no XDG equivalent; the fallback path is /tmp/firma-$UID (Unix) or %LOCALAPPDATA%\firma\runtime (Windows).

Persistence and observation of per-run sidecar markers.

Shared coarse-grained liveness state.