pub fn new<F, I, IN>(duration_generator: F) -> Self
    where
        F: 'static + Send + Sync + Fn() -> IN,
        I: 'static + Send + Sync + Iterator<Item = Duration>,
        IN: IntoIterator<IntoIter = I, Item = Duration>,
    {
        Self(ReconnectOptions::new().with_retries_generator(duration_generator))
    }
/// Create a retry configuration with given `duration_generator`.
///
/// `duration_generator` is a function that returns a duration iterator.
/// Each item yielded by the iterator indicates the delay time before next connection attempt after a disconnection occurs.
/// If `None` is returned, the stream fails.
///
/// The `default` implementation uses [`BEBIterator`](BEBIterator).
Create a retry configuration with given `duration_generator`.
`duration_generator` is a function that returns a duration iterator.
Each item yielded by the iterator indicates the delay time before next connection attempt after a disconnection occurs.
If `None` is returned, the stream fails.


Create a retry configuration with given ` duration_generator ` . ` duration_generator ` is a function that returns a duration iterator . Each item yielded by the iterator indicates the delay time before next connection attempt after a disconnection occurs . If ` None ` is returned the stream fails .
pub fn new<F, I, IN>(duration_generator: F) -> Self
    where
        F: 'static + Send + Sync + Fn() -> IN,
        I: 'static + Send + Sync + Iterator<Item = Duration>,
        IN: IntoIterator<IntoIter = I, Item = Duration>,
    {
        Self(ReconnectOptions::new().with_retries_generator(duration_generator))
    }
pub fn new < F , I , IN > ( duration_generator : F ) -> Self where F : ' static + Send + Sync + Fn ( ) -> IN , I : ' static + Send + Sync + Iterator < Item = Duration > , IN : IntoIterator < IntoIter = I , Item = Duration > , { Self ( ReconnectOptions :: new ( ) . with_retries_generator ( duration_generator ) ) }
Create a retry configuration with given `duration_generator`.
Create a retry configuration with given ` duration_generator ` .
duration_generator
F
duration_generator
F