#[repr(u8)]pub enum ListenerNonblockingMode {
Neither = 0,
Accept = 1,
Stream = 2,
Both = 3,
}
Expand description
The manner in which a listener is to be nonblocking.
Variants§
Neither = 0
Neither .accept()
nor the resulting stream are to have nonblocking semantics.
Accept = 1
.accept()
will be nonblocking, but the resulting stream will not.
Stream = 2
The resulting stream will be nonblocking, but .accept()
will not.
Both = 3
Both .accept()
and the resulting stream are to have nonblocking semantics.
Implementations§
Source§impl ListenerNonblockingMode
impl ListenerNonblockingMode
Sourcepub const fn accept_nonblocking(self) -> bool
pub const fn accept_nonblocking(self) -> bool
Returns true
if self
prescribes nonblocking .accept()
, false
otherwise.
Sourcepub const fn stream_nonblocking(self) -> bool
pub const fn stream_nonblocking(self) -> bool
Returns true
if self
prescribes nonblocking streams, false
otherwise.
Trait Implementations§
Source§impl Clone for ListenerNonblockingMode
impl Clone for ListenerNonblockingMode
Source§fn clone(&self) -> ListenerNonblockingMode
fn clone(&self) -> ListenerNonblockingMode
Returns a copy 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 ListenerNonblockingMode
impl Debug for ListenerNonblockingMode
Source§impl PartialEq for ListenerNonblockingMode
impl PartialEq for ListenerNonblockingMode
impl Copy for ListenerNonblockingMode
impl Eq for ListenerNonblockingMode
impl StructuralPartialEq for ListenerNonblockingMode
Auto Trait Implementations§
impl Freeze for ListenerNonblockingMode
impl RefUnwindSafe for ListenerNonblockingMode
impl Send for ListenerNonblockingMode
impl Sync for ListenerNonblockingMode
impl Unpin for ListenerNonblockingMode
impl UnwindSafe for ListenerNonblockingMode
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