pub fn exponential(delay: Duration) -> Self {
        Self {
            backoff: Backoff::Exponential { exponent: 2.0f64 },
            delay,
            ..Self::default()
        }
    }
/// Configures policy with an exponential
/// backoff delay.
///
/// By default, Futures will be retried 5 times.
///
/// These delays will increase in
/// length over time. You may wish to cap just how long
/// using the [`with_max_delay`](struct.Policy.html#method.with_max_delay) fn
///
/// By default an exponential backoff exponential of 2 will be used. This
/// can be modified using the
/// [`with_backoff_exponent`](struct.RetryPolicy.html#method.with_backoff_exponent) fn.
Configures policy with an exponential
backoff delay.

By default, Futures will be retried 5 times.

These delays will increase in
length over time. You may wish to cap just how long
using the [`with_max_delay`](struct.Policy.html#method.with_max_delay) fn

By default an exponential backoff exponential of 2 will be used.
Configures policy with an exponential backoff delay . By default Futures will be retried 5 times . These delays will increase in length over time . You may wish to cap just how long using the [ ` with_max_delay ` ] ( struct . Policy . html#method . with_max_delay ) fn By default an exponential backoff exponential of 2 will be used .
pub fn exponential(delay: Duration) -> Self {
        Self {
            backoff: Backoff::Exponential { exponent: 2.0f64 },
            delay,
            ..Self::default()
        }
    }
pub fn exponential ( delay : Duration ) -> Self { Self { backoff : Backoff :: Exponential { exponent : 2.0f64 } , delay , .. Self :: default ( ) } }
Configures policy with an exponential
backoff delay.
Configures policy with an exponential backoff delay .
delay
Duration
delay
Duration