Skip to main content

wait_for_retry

Function wait_for_retry 

Source
pub fn wait_for_retry(
    policy: RetryConfig,
    attempt: u32,
    hint: Option<Duration>,
) -> Duration
Expand description

Prefer operator-hinted wait when present; otherwise full-jitter formula.

SSH product has no HTTP Retry-After; hint lets embedding tools pass a cool-down without forking the formula.