Skip to main content

register_unit

Function register_unit 

Source
pub fn register_unit(
    label: &'static str,
    snapshot_rx: Receiver<ControllerSnapshot>,
)
Expand description

Register a unit’s snapshot stream with the process-wide registry.

Called once per spawned ControlUnit. Order is preserved — renderers display units in registration order, so callers should register in the order they want lines to appear.