Enum reool::config::BackoffStrategy [−][src]
pub enum BackoffStrategy { NoBackoff, Constant { fixed: Duration, jitter: bool, }, Incremental { jitter: bool, }, IncrementalCapped { cap: Duration, jitter: bool, }, }
Expand description
A strategy for determining delays between retries
The pool has a fixed size and will try to create all the needed connections with infinite retries. This is the strategy to determine the delays between subsequent retries.
Variants
Immediately retry
Retry always after a fixed interval. Maybe with some jitter.
Use incremental backoff. Max is 10s. Maybe with some jitter.
Fields of Incremental
jitter: bool
Use incremental backoff but not more than cap
. Max is 10s. Maybe with some jitter.
The maximum is always 10s even if cap
is greater.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BackoffStrategy
impl Send for BackoffStrategy
impl Sync for BackoffStrategy
impl Unpin for BackoffStrategy
impl UnwindSafe for BackoffStrategy
Blanket Implementations
Mutably borrows from an owned value. Read more