pub struct RecvBundle { /* private fields */ }
Expand description
Receive a bundle of buffers from a socket.
Parameter buf_group: The id of the provided buffer pool to use for the bundle.
Note that as of kernel 6.10 first recv always gets a single buffer, while second obtains the bundle of remaining buffers. This behavior may change in the future.
Bundle variant is available since kernel 6.10
Implementations§
Source§impl RecvBundle
impl RecvBundle
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 fn new(fd: impl UseFixed, buf_group: u16) -> Self
pub const fn flags(self, flags: i32) -> Self
pub fn build(self) -> Entry
Auto Trait Implementations§
impl Freeze for RecvBundle
impl RefUnwindSafe for RecvBundle
impl Send for RecvBundle
impl Sync for RecvBundle
impl Unpin for RecvBundle
impl UnwindSafe for RecvBundle
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