pub struct WakableFillRing { /* private fields */ }Expand description
The wakable version of FillRing, which requires that we notify the kernel
when there are new buffers available to receive packets
Implementations§
Source§impl WakableFillRing
impl WakableFillRing
Sourcepub unsafe fn enqueue(
&mut self,
umem: &mut Umem,
num_packets: usize,
wakeup: bool,
) -> Result<usize>
pub unsafe fn enqueue( &mut self, umem: &mut Umem, num_packets: usize, wakeup: bool, ) -> Result<usize>
The same as FillRing::enqueue, except the additional wakeup parameter
determines if the kernel is actually informed of the new buffer(s) available
to fill with data
§Safety
The Umem must outlive the AF_XDP socket
Auto Trait Implementations§
impl Freeze for WakableFillRing
impl RefUnwindSafe for WakableFillRing
impl Send for WakableFillRing
impl Sync for WakableFillRing
impl Unpin for WakableFillRing
impl !UnwindSafe for WakableFillRing
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