pub struct SocketWaitPolicy {
pub nonblocking: bool,
pub timeout: Option<Duration>,
}Expand description
OS-facing policy for driving one task-neutral socket future.
Fields§
§nonblocking: boolWhether this operation must return after the registration recheck.
timeout: Option<Duration>Optional relative timeout owned and enforced by the consuming OS.
Trait Implementations§
Source§impl Clone for SocketWaitPolicy
impl Clone for SocketWaitPolicy
Source§fn clone(&self) -> SocketWaitPolicy
fn clone(&self) -> SocketWaitPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SocketWaitPolicy
Source§impl Debug for SocketWaitPolicy
impl Debug for SocketWaitPolicy
impl Eq for SocketWaitPolicy
Source§impl PartialEq for SocketWaitPolicy
impl PartialEq for SocketWaitPolicy
impl StructuralPartialEq for SocketWaitPolicy
Auto Trait Implementations§
impl Freeze for SocketWaitPolicy
impl RefUnwindSafe for SocketWaitPolicy
impl Send for SocketWaitPolicy
impl Sync for SocketWaitPolicy
impl Unpin for SocketWaitPolicy
impl UnsafeUnpin for SocketWaitPolicy
impl UnwindSafe for SocketWaitPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DmaPod for Twhere
T: Copy,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.