pub fn next_backoff_delay(
config: &BackoffConfig,
state: &BackoffState,
) -> Option<Duration>Expand description
Returns the delay before the next attempt, or None if retries are exhausted.
Delay doubles each attempt and is capped at config.max_delay_ms.