duration_from_reqwest_error

Function duration_from_reqwest_error 

Source
pub fn duration_from_reqwest_error(
    method: &Method,
    error: &Error,
    backoff: &mut ExponentialBackoff,
) -> Option<Duration>
Expand description

Return Some if the error is one that makes sense to retry and method is one that indicates it is safe to retry.