pub enum RetryBackoff {
Fixed(Duration),
Exponential {
base: Duration,
max: Duration,
},
}Expand description
重试退避策略。
Variants§
Trait Implementations§
Source§impl Clone for RetryBackoff
impl Clone for RetryBackoff
Source§fn clone(&self) -> RetryBackoff
fn clone(&self) -> RetryBackoff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetryBackoff
impl Debug for RetryBackoff
Auto Trait Implementations§
impl Freeze for RetryBackoff
impl RefUnwindSafe for RetryBackoff
impl Send for RetryBackoff
impl Sync for RetryBackoff
impl Unpin for RetryBackoff
impl UnsafeUnpin for RetryBackoff
impl UnwindSafe for RetryBackoff
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