pub enum Backoff {
Fixed(Duration),
Exponential {
base: Duration,
factor: f64,
},
}Expand description
Backoff strategy for retry delays.
Variants§
Fixed(Duration)
Fixed delay between retries.
Exponential
Exponential backoff with configurable base and factor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backoff
impl RefUnwindSafe for Backoff
impl Send for Backoff
impl Sync for Backoff
impl Unpin for Backoff
impl UnwindSafe for Backoff
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