control
Module: control
Section titled “Module: control”Contents
Section titled “Contents”Structs
ControlOptions- Options used to start Policy Control.
Functions
run- Runs the Policy Control event loop.
firma_tui::control::ControlOptions
Section titled “firma_tui::control::ControlOptions”Struct
Options used to start Policy Control.
Methods:
fn with_audit_rows(audit_rows: Receiver<AuditRow>) -> Self- Creates options backed by a live audit row receiver.fn with_policy_dir(self: Self, policy_dir: PathBuf) -> Self- Records the Authority policy directory resolved by the CLI service.
Trait Implementations:
- Default
fn default() -> ControlOptions
firma_tui::control::run
Section titled “firma_tui::control::run”Function
Runs the Policy Control event loop.
Terminal setup, input polling, and drawing errors are returned to the caller. Terminal cleanup is still attempted when setup partially succeeds.
Errors
Section titled “Errors”Returns an error when terminal setup, event polling, or drawing fails.
fn run(options: &ControlOptions) -> anyhow::Result<std::process::ExitCode>