pub struct WakableTxRing { /* private fields */ }Expand description
Wakable version of TxRing
Implementations§
Source§impl WakableTxRing
impl WakableTxRing
Sourcepub unsafe fn send<S: Slab>(
&mut self,
packets: &mut S,
wakeup: bool,
) -> Result<usize>
pub unsafe fn send<S: Slab>( &mut self, packets: &mut S, wakeup: bool, ) -> Result<usize>
Enqueues packets to be sent by the kernel
§Safety
The crate::Umem that owns the packets being sent must outlive the AF_XDP
socket
§Returns
The number of packets that were actually enqueued. This number can be
lower than the requested num_packets if the ring doesn’t have sufficient
capacity
Auto Trait Implementations§
impl Freeze for WakableTxRing
impl RefUnwindSafe for WakableTxRing
impl Send for WakableTxRing
impl !Sync for WakableTxRing
impl Unpin for WakableTxRing
impl !UnwindSafe for WakableTxRing
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