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

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 Clone for SurveyTime[src]

impl Copy for SurveyTime[src]

impl Debug for SurveyTime[src]

impl Display for SurveyTime[src]

impl Eq for SurveyTime[src]

impl GetOpt<SurveyTime> for Context[src]

impl GetOpt<SurveyTime> for Dialer[src]

impl GetOpt<SurveyTime> for DialerBuilder[src]

impl GetOpt<SurveyTime> for Listener[src]

impl GetOpt<SurveyTime> for ListenerBuilder[src]

impl GetOpt<SurveyTime> for Socket[src]

impl Hash for SurveyTime[src]

impl Opt for SurveyTime[src]

type OptType = Option<Duration>

The type that the option read and writes.

impl Ord for SurveyTime[src]

impl PartialEq<SurveyTime> for SurveyTime[src]

impl PartialOrd<SurveyTime> for SurveyTime[src]

impl SetOpt<SurveyTime> for Context[src]

impl SetOpt<SurveyTime> for Socket[src]

impl StructuralEq for SurveyTime[src]

impl StructuralPartialEq for SurveyTime[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.