pub struct Rings {
pub fill_ring: FillRing,
pub rx_ring: Option<RxRing>,
pub completion_ring: CompletionRing,
pub tx_ring: Option<TxRing>,
}Expand description
The set of rings tied to an XDP socket
Fields§
§fill_ring: FillRingThe ring used by userspace to inform the kernel of memory addresses that you wish it to fill with packet received on the bound NIC
rx_ring: Option<RxRing>The ring used by the kernel to place packets that have finished receiving
completion_ring: CompletionRingThe ring used by the kernel to inform userspace when packets have finished sending
tx_ring: Option<TxRing>The ring used by userspace to enqueue packets to be sent on the bound NIC
Auto Trait Implementations§
impl Freeze for Rings
impl RefUnwindSafe for Rings
impl Send for Rings
impl Sync for Rings
impl Unpin for Rings
impl !UnwindSafe for Rings
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