pub struct RestartSettings {
pub min_backoff: Duration,
pub max_backoff: Duration,
pub random_factor: f64,
pub max_restarts: Option<usize>,
}Fields§
§min_backoff: Duration§max_backoff: Duration§random_factor: f64§max_restarts: Option<usize>Trait Implementations§
Source§impl Clone for RestartSettings
impl Clone for RestartSettings
Source§fn clone(&self) -> RestartSettings
fn clone(&self) -> RestartSettings
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 RestartSettings
impl Debug for RestartSettings
Source§impl Default for RestartSettings
impl Default for RestartSettings
impl Copy for RestartSettings
Auto Trait Implementations§
impl Freeze for RestartSettings
impl RefUnwindSafe for RestartSettings
impl Send for RestartSettings
impl Sync for RestartSettings
impl Unpin for RestartSettings
impl UnsafeUnpin for RestartSettings
impl UnwindSafe for RestartSettings
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