Struct socket2::RecvFlags [−][src]
pub struct RecvFlags(_);
Expand description
Flags for incoming messages.
Flags provide additional information about incoming messages.
Implementations
Unix-only API.
Check if the message terminates a record.
Not all socket types support the notion of records.
For socket types that do support it (such as SEQPACKET
),
a record is terminated by sending a message with the end-of-record flag set.
On Unix this corresponds to the MSG_EOR flag.
Check if the message contains out-of-band data.
This is useful for protocols where you receive out-of-band data mixed in with the normal data stream.
On Unix this corresponds to the MSG_OOB flag.
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
Auto Trait Implementations
impl RefUnwindSafe for RecvFlags
impl UnwindSafe for RecvFlags
Blanket Implementations
Mutably borrows from an owned value. Read more