Skip to main content

BridgePortSet

Type Alias BridgePortSet 

pub type BridgePortSet = Arc<Mutex<HashSet<u16>>>;
Expand description

Everything the enrollment endpoint needs to serve requests. Source ports the in-process relay bridge is dialing the enrollment endpoint from. The bridge registers each outbound port BEFORE connecting (bind, then register, then connect), so accept-side membership is race-free. A loopback peer in this set is relay-class; every other peer is direct-class.

Aliased Typeยง

pub struct BridgePortSet { /* private fields */ }