pub struct RecvMsg { /* private fields */ }
Expand description
Receive a message on a socket, equivalent to recvmsg(2)
.
See also the description of SendMsg
.
Implementations§
source§impl RecvMsg
impl RecvMsg
pub fn new(fd: impl UseFixed, msg: *mut msghdr) -> Self
sourcepub const CODE: u8 = 10u8
pub const CODE: u8 = 10u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.