pub enum ReconnectMaxTime {}Expand description
The maximum amount of time to wait before attempting to establish a connection after a previous attempt has failed.
If this is non-zero, then the time between successive connection
attempts will start at the value of ReconnectMinTime, and grow
exponentially, until it reaches this value. If this value is zero, then
no exponential back-off between connection attempts is done, and each
attempt will wait the time specified by ReconnectMinTime. This can be
set on a socket, but it can also be overridden on an individual dialer.
§Support
- Dialers can use this option.
- Sockets can use this option to create a new default value.
Trait Implementations§
Source§impl Clone for ReconnectMaxTime
impl Clone for ReconnectMaxTime
Source§fn clone(&self) -> ReconnectMaxTime
fn clone(&self) -> ReconnectMaxTime
Returns a duplicate of the value. Read more
1.0.0 · 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 ReconnectMaxTime
impl Debug for ReconnectMaxTime
Source§impl Display for ReconnectMaxTime
impl Display for ReconnectMaxTime
Source§impl Hash for ReconnectMaxTime
impl Hash for ReconnectMaxTime
Source§impl Opt for ReconnectMaxTime
impl Opt for ReconnectMaxTime
Source§impl Ord for ReconnectMaxTime
impl Ord for ReconnectMaxTime
Source§fn cmp(&self, other: &ReconnectMaxTime) -> Ordering
fn cmp(&self, other: &ReconnectMaxTime) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReconnectMaxTime
impl PartialEq for ReconnectMaxTime
Source§impl PartialOrd for ReconnectMaxTime
impl PartialOrd for ReconnectMaxTime
impl Copy for ReconnectMaxTime
impl Eq for ReconnectMaxTime
impl GetOpt<ReconnectMaxTime> for Dialer
impl GetOpt<ReconnectMaxTime> for DialerBuilder
impl SetOpt<ReconnectMaxTime> for DialerBuilder
impl SetOpt<ReconnectMaxTime> for Socket
impl StructuralPartialEq for ReconnectMaxTime
Auto Trait Implementations§
impl Freeze for ReconnectMaxTime
impl RefUnwindSafe for ReconnectMaxTime
impl Send for ReconnectMaxTime
impl Sync for ReconnectMaxTime
impl Unpin for ReconnectMaxTime
impl UnwindSafe for ReconnectMaxTime
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