pub enum Mode {
Blocking,
NonBlocking,
Timeout(u16),
}
Expand description
Whether a socket should block when a read/write can’t be performed, or return early.
Variants§
Blocking
The function call will wait as long as necessary to complete the operation
NonBlocking
The function call will not wait at all to complete the operation, and only do what it can.
Timeout(u16)
The function call will wait only up the given number of milliseconds to complete the operation.
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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