Skip to main content

resolve_backoff

Function resolve_backoff 

Source
pub fn resolve_backoff<'a>(
    hostname: &str,
    policies: &'a [DomainPolicy],
    default: &'a BackoffConfig,
) -> &'a BackoffConfig
Expand description

Resolve the effective backoff config for a hostname.

Returns the first matching DomainPolicy.backoff when hostname_pattern equals hostname, otherwise returns default.