Skip to main content

MIN_TIMEOUT

Constant MIN_TIMEOUT 

Source
pub const MIN_TIMEOUT: Duration;
Expand description

The shortest timeout a caller may ask for.

The same declaration carries "minimum": 1, and it was equally unenforced: timeout_secs: 0 produced a deadline that had already passed, so every command died on its first pass through the control loop having run nothing. A caller who sends zero has asked for the smallest timeout there is, so that is what they get — the alternative, treating zero as “no timeout”, would read an opt-out into a field whose whole purpose is the opposite.