Skip to main content

version_gate

Function version_gate 

Source
pub fn version_gate(
    current: &PrintVersion,
    new: &PrintVersion,
) -> Result<(), String>
Expand description

Directional gate (§2.1): new protocol ≥ ours (clients must still be able to reconnect) and new binary ≥ ours (newer OR EQUAL; same-version rebuilds are the common case).