pub fn clamp_interval(secs: u32) -> u32
Clamp a declared interval (seconds) into the legal [PEX_MIN_INTERVAL, PEX_MAX_INTERVAL] range (SPEC §6.2). Both a sender’s own declaration and a remote’s declaration are clamped for use.
[PEX_MIN_INTERVAL, PEX_MAX_INTERVAL]