[][src]Enum nng::options::protocol::survey::SurveyTime

pub enum SurveyTime {}

Amount of time that the following surveys will last.

When a new survey is started, a timer of this duration is also started. Any responses arriving this time will be discarded. Attempts to receive after the timer expires with no other surveys started will result in ErrorKind::IncorrectState. Attempts to receive when this timer expires will result in ErrorKind::TimedOut.

Support

  • Sockets can read and write this value when using the following protocols:
    • Surveyor v0
  • Dialers and Listeners can retrieve it from their owning Socket, if applicable.

Trait Implementations

impl Opt for SurveyTime[src]

type OptType = Option<Duration>

The type that the option read and writes.

impl GetOpt<SurveyTime> for Context[src]

impl GetOpt<SurveyTime> for Dialer[src]

impl GetOpt<SurveyTime> for DialerOptions[src]

impl GetOpt<SurveyTime> for Listener[src]

impl GetOpt<SurveyTime> for ListenerOptions[src]

impl GetOpt<SurveyTime> for Socket[src]

impl SetOpt<SurveyTime> for Context[src]

impl SetOpt<SurveyTime> for Socket[src]

impl Clone for SurveyTime[src]

impl Copy for SurveyTime[src]

impl Eq for SurveyTime[src]

impl Ord for SurveyTime[src]

impl PartialEq<SurveyTime> for SurveyTime[src]

impl PartialOrd<SurveyTime> for SurveyTime[src]

impl Debug for SurveyTime[src]

impl Display for SurveyTime[src]

impl Hash for SurveyTime[src]

impl StructuralPartialEq for SurveyTime[src]

impl StructuralEq for SurveyTime[src]

Auto Trait Implementations

Blanket Implementations

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 = !

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.

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

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

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