with_active_bridge

Function with_active_bridge 

Source
pub fn with_active_bridge<R>(f: impl FnOnce(&SnapshotBridge) -> R) -> Option<R>
Expand description

Run f with the active bridge if one is installed. When no bridge is installed, returns None without invoking f — the caller’s responsibility to fall through to its own no-bridge path.