pub enum RestartBackoff {
None,
Fixed {
delay_ms: u64,
},
Exponential {
base_ms: u64,
max_ms: u64,
},
}Expand description
Restart backoff strategy.
Variants§
Trait Implementations§
Source§impl Clone for RestartBackoff
impl Clone for RestartBackoff
Source§fn clone(&self) -> RestartBackoff
fn clone(&self) -> RestartBackoff
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 moreAuto Trait Implementations§
impl Freeze for RestartBackoff
impl RefUnwindSafe for RestartBackoff
impl Send for RestartBackoff
impl Sync for RestartBackoff
impl Unpin for RestartBackoff
impl UnsafeUnpin for RestartBackoff
impl UnwindSafe for RestartBackoff
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