Struct socket2::RecvFlags[][src]

pub struct RecvFlags(_);

Flags for incoming messages.

Flags provide additional information about incoming messages.

Implementations

impl RecvFlags[src]

Unix-only API.

pub const fn is_end_of_record(self) -> bool[src]

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.

pub const fn is_out_of_band(self) -> bool[src]

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.

impl RecvFlags[src]

pub const fn is_truncated(self) -> bool[src]

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 Clone for RecvFlags[src]

impl Copy for RecvFlags[src]

impl Debug for RecvFlags[src]

impl Eq for RecvFlags[src]

impl PartialEq<RecvFlags> for RecvFlags[src]

impl StructuralEq for RecvFlags[src]

impl StructuralPartialEq for RecvFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.