pub struct RecvFlags(/* private fields */);Available on non-Redox only.
Expand description
Flags for incoming messages.
Flags provide additional information about incoming messages.
Implementations§
Source§impl RecvFlags
impl RecvFlags
Sourcepub const fn is_truncated(self) -> bool
Available on non-target_os=espidf only.
pub const fn is_truncated(self) -> bool
target_os=espidf only.Check if the message contains a truncated datagram.
This flag is only used for datagram-based sockets, not for stream sockets.
On Unix this corresponds to the MSG_TRUNC flag.
On Windows this corresponds to the WSAEMSGSIZE error code.
Trait Implementations§
impl Copy for RecvFlags
impl Eq for RecvFlags
impl StructuralPartialEq for RecvFlags
Auto Trait Implementations§
impl Freeze for RecvFlags
impl RefUnwindSafe for RecvFlags
impl Send for RecvFlags
impl Sync for RecvFlags
impl Unpin for RecvFlags
impl UnwindSafe for RecvFlags
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