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 Copy for ReconnectMaxTime[src]

impl Debug for ReconnectMaxTime[src]

impl Display for ReconnectMaxTime[src]

impl Eq for ReconnectMaxTime[src]

impl GetOpt<ReconnectMaxTime> for Dialer[src]

impl GetOpt<ReconnectMaxTime> for DialerBuilder[src]

impl Hash for ReconnectMaxTime[src]

impl Opt for ReconnectMaxTime[src]

type OptType = Option<Duration>

The type that the option read and writes.

impl Ord for ReconnectMaxTime[src]

impl PartialEq<ReconnectMaxTime> for ReconnectMaxTime[src]

impl PartialOrd<ReconnectMaxTime> for ReconnectMaxTime[src]

impl SetOpt<ReconnectMaxTime> for DialerBuilder[src]

impl SetOpt<ReconnectMaxTime> for Socket[src]

impl StructuralEq for ReconnectMaxTime[src]

impl StructuralPartialEq for ReconnectMaxTime[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.