pub struct Recv { /* private fields */ }
Expand description
Receive a message from a socket, equivalent to recv(2)
.
Implementations
sourceimpl Recv
impl Recv
pub fn new(fd: impl UseFixed, buf: *mut u8, len: u32) -> Self
sourcepub const CODE: u8 = 27u8
pub const CODE: u8 = 27u8
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 flags(self, flags: i32) -> Self
pub const fn buf_group(self, buf_group: u16) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations
impl RefUnwindSafe for Recv
impl !Send for Recv
impl !Sync for Recv
impl Unpin for Recv
impl UnwindSafe for Recv
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