app
Module: control::app
Section titled “Module: control::app”Contents
Section titled “Contents”Structs
App- Mutable application state for Policy Control.
firma_tui::control::app::App
Section titled “firma_tui::control::app::App”Struct
Mutable application state for Policy Control.
The runner owns side effects and feeds events into this type. App keeps
pane focus, help visibility, audit buffer state, and the runtime status
rendered in the terminal frame.
Methods:
fn new(policy_dir: Option<PathBuf>, audit_connected: bool) -> Self- Creates application state from the resolved policy directory and auditfn should_quit(self: &Self) -> bool- Returns true once the runner should stop processing events.fn quit(self: & mut Self)- Marks the app as ready to exit.fn request_quit(self: & mut Self)- Requests a graceful shutdown.fn mark_running(self: & mut Self)- Marks the app as accepting input and external events.fn toggle_help(self: & mut Self)- Toggles the help overlay.fn close_help(self: & mut Self)- Closes the help overlay.fn help_visible(self: &Self) -> bool- Returns true when the help overlay is visible.fn selected_pane(self: &Self) -> Pane- Pane currently receiving navigation commands.fn switch_pane(self: & mut Self)- Moves focus to the next pane.fn move_selection_up(self: & mut Self)- Moves selection up in the focused pane.fn move_selection_down(self: & mut Self)- Moves selection down in the focused pane.fn move_selection_first(self: & mut Self)- Moves selection to the first row in the focused pane.fn move_selection_last(self: & mut Self)- Moves selection to the last row in the focused pane.fn status(self: &Self) -> &ControlStatus- Current runtime status rendered by the frame.fn policy_dir(self: &Self) -> Option<&Path>- Authority policy directory, when it was resolved from the stack config.fn set_audit_filter(self: & mut Self, audit_filter: AuditFilter)- Changes the audit decision filter.fn audit_filter(self: &Self) -> AuditFilter- Current audit decision filter.fn audit_viewport_mode(self: &Self) -> AuditViewportMode- Current audit viewport tracking mode.fn selected_audit_index(self: &Self) -> usize- Index of the selected audit row in the filtered view.fn audit_rows_len(self: &Self) -> usize- Number of audit rows retained in the bounded buffer.fn visible_audit_rows(self: &Self) -> impl Trait- Iterates over audit rows visible under the current filter.fn visible_audit_rows_len(self: &Self) -> usize- Number of audit rows visible under the current filter.fn push_audit_row(self: & mut Self, row: AuditRow)- Appends one audit row and updates audit selection.fn push_audit_rows<impl IntoIterator<Item = AuditRow>>(self: & mut Self, rows: impl Trait)- Appends several audit rows in source order.fn start_g_prefix(self: & mut Self)- Starts a pendinggprefix forggnavigation.fn take_g_prefix(self: & mut Self) -> bool- Consumes the pendinggprefix and reports whether it was set.fn clear_g_prefix(self: & mut Self)- Clears any pending multi-key prefix.
Trait Implementations:
- Default
fn default() -> Self