Skip to content

status

Structs

  • ControlStatus - Snapshot of runtime information rendered by the UI.

firma_tui::control::state::status::ControlStatus

Section titled “firma_tui::control::state::status::ControlStatus”

Struct

Snapshot of runtime information rendered by the UI.

The app refreshes this as audit rows arrive and lifecycle state changes, so rendering can read one stable status value without querying event sources.

Fields:

  • policy_dir: Option<std::path::PathBuf> - Authority policy directory resolved from the active stack config.
  • runtime_state: super::ControlRuntimeState - Current lifecycle state.
  • policy_count: usize - Number of policy rows known to the TUI.
  • audit_connected: bool - Whether an audit source was connected when the TUI started.
  • audit_rows: usize - Number of audit rows currently buffered.
  • last_error: Option<crate::control::error::ControlError> - Most recent runtime or source error.

Methods:

  • fn new(policy_dir: Option<PathBuf>, audit_connected: bool) -> Self - Creates the initial status snapshot.

Traits: Eq

Trait Implementations:

  • PartialEq
    • fn eq(self: &Self, other: &ControlStatus) -> bool
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Clone
    • fn clone(self: &Self) -> ControlStatus