use_retry_policy

Function use_retry_policy 

Source
pub fn use_retry_policy(policy: RetryPolicy) -> RetryPolicyGuard
Expand description

Temporarily sets the retry policy to the given value.

When the returned guard is dropped, the original retry policy is restored.