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.
pub const fn ioprio(self, ioprio: u16) -> Self
pub const fn flags(self, flags: u32) -> Self
pub const fn buf_group(self, buf_group: u16) -> Self
pub fn build(self) -> Entry
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