use Duration;
use crateOptionalSend;
use crateBoxIterator;
/// The delays between the retries of an RPC to a node that is unreachable.
///
/// After an [`Unreachable`](`crate::error::Unreachable`) error, Openraft sleeps for the next
/// delay of this iterator before it retries. Supply an infinite iterator, such as one that ends
/// by repeating its last delay: the end of the iterator does not stop the retries. Whenever it
/// returns `None`, Openraft retries after a fixed delay of its own choosing, an implementation
/// default that may change.
///
/// Every policy of [`Config::backoff`](crate::Config::backoff) is infinite.