pub fn new(retry_attempts: usize) -> Self {
        RetryLimit {
            remaining_tries: retry_attempts,
        }
    }
/// Create a policy with the given number of retry attempts.
Create a policy with the given number of retry attempts.
Create a policy with the given number of retry attempts .
pub fn new(retry_attempts: usize) -> Self {
        RetryLimit {
            remaining_tries: retry_attempts,
        }
    }
pub fn new ( retry_attempts : usize ) -> Self { RetryLimit { remaining_tries : retry_attempts , } }
Create a policy with the given number of retry attempts.
Create a policy with the given number of retry attempts .
retry_attempts
usize