Struct socket2::RecvFlags [−][src]
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
][Type::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
impl RefUnwindSafe for RecvFlags
[src]
impl Send for RecvFlags
[src]
impl Sync for RecvFlags
[src]
impl Unpin for RecvFlags
[src]
impl UnwindSafe for RecvFlags
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,