pub enum BackoffStrategyConfig {
Fixed {
interval: Duration,
},
Exponential {
base: Duration,
max: Duration,
},
}Expand description
Backoff strategy configuration.
Variants§
Trait Implementations§
Source§impl Clone for BackoffStrategyConfig
impl Clone for BackoffStrategyConfig
Source§fn clone(&self) -> BackoffStrategyConfig
fn clone(&self) -> BackoffStrategyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackoffStrategyConfig
impl RefUnwindSafe for BackoffStrategyConfig
impl Send for BackoffStrategyConfig
impl Sync for BackoffStrategyConfig
impl Unpin for BackoffStrategyConfig
impl UnsafeUnpin for BackoffStrategyConfig
impl UnwindSafe for BackoffStrategyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more