pub struct RecvMsg {
pub bytes: usize,
pub flags: ReturnFlags,
pub address: Option<SocketAddrAny>,
}
Expand description
The result of a successful recvmsg
call.
Fields§
§bytes: usize
The number of bytes received.
When RecvFlags::TRUNC
is in use, this may be greater than the length
of the buffer, as it reflects the number of bytes received before
truncation into the buffer.
flags: ReturnFlags
The flags received.
address: Option<SocketAddrAny>
The address of the socket we received from, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecvMsg
impl RefUnwindSafe for RecvMsg
impl Send for RecvMsg
impl Sync for RecvMsg
impl Unpin for RecvMsg
impl UnwindSafe for RecvMsg
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