Enum nng::options::ReconnectMaxTime [−][src]
pub enum ReconnectMaxTime {}
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
impl Clone for ReconnectMaxTime
[src]
impl Clone for ReconnectMaxTime
[src]fn clone(&self) -> ReconnectMaxTime
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ReconnectMaxTime
[src]
impl Copy for ReconnectMaxTime
[src]impl Eq for ReconnectMaxTime
[src]
impl Eq for ReconnectMaxTime
[src]impl GetOpt<ReconnectMaxTime> for Dialer
[src]
impl GetOpt<ReconnectMaxTime> for Dialer
[src]impl GetOpt<ReconnectMaxTime> for DialerBuilder
[src]
impl GetOpt<ReconnectMaxTime> for DialerBuilder
[src]impl Hash for ReconnectMaxTime
[src]
impl Hash for ReconnectMaxTime
[src]impl Opt for ReconnectMaxTime
[src]
impl Opt for ReconnectMaxTime
[src]impl Ord for ReconnectMaxTime
[src]
impl Ord for ReconnectMaxTime
[src]impl PartialEq<ReconnectMaxTime> for ReconnectMaxTime
[src]
impl PartialEq<ReconnectMaxTime> for ReconnectMaxTime
[src]impl PartialOrd<ReconnectMaxTime> for ReconnectMaxTime
[src]
impl PartialOrd<ReconnectMaxTime> for ReconnectMaxTime
[src]fn partial_cmp(&self, other: &ReconnectMaxTime) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl SetOpt<ReconnectMaxTime> for DialerBuilder
[src]
impl SetOpt<ReconnectMaxTime> for DialerBuilder
[src]impl SetOpt<ReconnectMaxTime> for Socket
[src]
impl SetOpt<ReconnectMaxTime> for Socket
[src]impl StructuralEq for ReconnectMaxTime
[src]
impl StructuralEq for ReconnectMaxTime
[src]impl StructuralPartialEq for ReconnectMaxTime
[src]
impl StructuralPartialEq for ReconnectMaxTime
[src]Auto Trait Implementations
impl RefUnwindSafe for ReconnectMaxTime
impl RefUnwindSafe for ReconnectMaxTime
impl Send for ReconnectMaxTime
impl Send for ReconnectMaxTime
impl Sync for ReconnectMaxTime
impl Sync for ReconnectMaxTime
impl Unpin for ReconnectMaxTime
impl Unpin for ReconnectMaxTime
impl UnwindSafe for ReconnectMaxTime
impl UnwindSafe for ReconnectMaxTime