pub enum SurveyTime {}
Expand description
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§
Source§impl Clone for SurveyTime
impl Clone for SurveyTime
Source§fn clone(&self) -> SurveyTime
fn clone(&self) -> SurveyTime
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 SurveyTime
impl Debug for SurveyTime
Source§impl Display for SurveyTime
impl Display for SurveyTime
Source§impl Hash for SurveyTime
impl Hash for SurveyTime
Source§impl Opt for SurveyTime
impl Opt for SurveyTime
Source§impl Ord for SurveyTime
impl Ord for SurveyTime
Source§fn cmp(&self, other: &SurveyTime) -> Ordering
fn cmp(&self, other: &SurveyTime) -> 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 SurveyTime
impl PartialEq for SurveyTime
Source§impl PartialOrd for SurveyTime
impl PartialOrd for SurveyTime
impl Copy for SurveyTime
impl Eq for SurveyTime
impl GetOpt<SurveyTime> for Context
impl GetOpt<SurveyTime> for Dialer
impl GetOpt<SurveyTime> for DialerBuilder
impl GetOpt<SurveyTime> for Listener
impl GetOpt<SurveyTime> for ListenerBuilder
impl GetOpt<SurveyTime> for Socket
impl SetOpt<SurveyTime> for Context
impl SetOpt<SurveyTime> for Socket
impl StructuralPartialEq for SurveyTime
Auto Trait Implementations§
impl Freeze for SurveyTime
impl RefUnwindSafe for SurveyTime
impl Send for SurveyTime
impl Sync for SurveyTime
impl Unpin for SurveyTime
impl UnwindSafe for SurveyTime
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