pub struct RecvMsg { /* private fields */ }
Expand description
Receive a message on a socket, equivalent to recvmsg(2)
.
See also the description of SendMsg
.
Implementations
sourceimpl 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 fn build(self) -> Entry
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RecvMsg
impl !Send for RecvMsg
impl !Sync for RecvMsg
impl Unpin for RecvMsg
impl UnwindSafe for RecvMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more