pub struct Reconnect {
pub min_time: Option<Duration>,
pub max_time: Option<Duration>,
}
Expand description
Reconnect options
Fields§
§min_time: Option<Duration>
This is the minimum amount of time to wait before attempting to establish a connection after a previous attempt has failed
max_time: Option<Duration>
This is the maximum amount of time to wait before attempting to establish a connection after a previous attempt has failed
This can be set to 0, to disable exponential back-off
Trait Implementations§
impl Copy for Reconnect
Auto Trait Implementations§
impl Freeze for Reconnect
impl RefUnwindSafe for Reconnect
impl Send for Reconnect
impl Sync for Reconnect
impl Unpin for Reconnect
impl UnwindSafe for Reconnect
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