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 runner refreshes this from app state before drawing so the frame can show queue length, audit connectivity, and the current policy error without querying event sources directly. Treat this as a display contract: background sources update the app, the app produces one snapshot, and the renderer stays a pure view over that snapshot.

Fields:

  • runtime_state: super::ControlRuntimeState - Current lifecycle state.
  • policy_dir: Option<std::path::PathBuf> - Authority policy directory resolved from the active stack config.
  • 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.
  • rewrite_queue_len: usize - Number of policy rewrite requests waiting in the worker queue.
  • pending_rewrites: usize - Number of policy rows that are queued or being written.
  • policy_error: Option<crate::control::error::ControlError> - Current policy-side error.

Traits: Eq

Trait Implementations:

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