Skip to main content

join_inventory

Function join_inventory 

Source
pub fn join_inventory<S: BuildHasher>(
    agents: Vec<StatusAgent>,
    pane_paths: &[(usize, String)],
    modes: &HashMap<usize, Mode, S>,
) -> Vec<AgentEntry>
Expand description

Joins broker status rows with the tmux pane mapping and per-pane detected modes into inventory entries.

modes maps a pane index to its detected Mode; an agent whose pane is absent from the map (or unmatched) reports Mode::Unknown.