Skip to main content

CableId

Type Alias CableId 

Source
pub type CableId = usize;
Expand description

Stable, unique identifier for a cable connection.

Assigned by Patch::connect (and its variants) from a monotonically increasing counter and stored inside the Cable. Unlike a positional index into the cable list, a CableId remains valid after other cables are disconnected/removed, so it is safe to hold and later pass to Patch::disconnect.