pub struct SockMsgFlags(/* private fields */);Expand description
Flags for a message transmitted to and received from a socket.
Implementations§
Source§impl SockMsgFlags
impl SockMsgFlags
pub const NONE: Self
Sourcepub const DONT_WAIT: Self
pub const DONT_WAIT: Self
Return an error if sending/receiving the message would block instead of blocking.
Sourcepub const PEEK: Self
pub const PEEK: Self
For a receive operation, only read the message without removing it from the queue, so another receive operation would read the same exact message.
Sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Returns true If self contains the flags other containsa
pub const fn from_bits_retaining(bits: u32) -> Self
pub const fn into_bits(self) -> u32
Trait Implementations§
Source§impl BitAnd for SockMsgFlags
impl BitAnd for SockMsgFlags
Source§impl BitOr for SockMsgFlags
impl BitOr for SockMsgFlags
Source§impl Clone for SockMsgFlags
impl Clone for SockMsgFlags
Source§fn clone(&self) -> SockMsgFlags
fn clone(&self) -> SockMsgFlags
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 moreSource§impl Debug for SockMsgFlags
impl Debug for SockMsgFlags
Source§impl Not for SockMsgFlags
impl Not for SockMsgFlags
Source§impl PartialEq for SockMsgFlags
impl PartialEq for SockMsgFlags
Source§fn eq(&self, other: &SockMsgFlags) -> bool
fn eq(&self, other: &SockMsgFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SockMsgFlags
impl Eq for SockMsgFlags
impl StructuralPartialEq for SockMsgFlags
Auto Trait Implementations§
impl Freeze for SockMsgFlags
impl RefUnwindSafe for SockMsgFlags
impl Send for SockMsgFlags
impl Sync for SockMsgFlags
impl Unpin for SockMsgFlags
impl UnsafeUnpin for SockMsgFlags
impl UnwindSafe for SockMsgFlags
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