Skip to main content

clamp_interval

Function clamp_interval 

Source
pub fn clamp_interval(secs: u32) -> u32
Expand description

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.