pub struct PushQueue<Prev: Rec> { /* private fields */ }Available on crate feature
netdev only.Implementations§
Source§impl<Prev: Rec> PushQueue<Prev>
impl<Prev: Rec> PushQueue<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
Sourcepub fn push_id(self, value: u32) -> Self
pub fn push_id(self, value: u32) -> Self
Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
Sourcepub fn push_ifindex(self, value: u32) -> Self
pub fn push_ifindex(self, value: u32) -> Self
ifindex of the netdevice to which the queue belongs.
Sourcepub fn push_type(self, value: u32) -> Self
pub fn push_type(self, value: u32) -> Self
Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute. Associated type: “QueueType” (enum)
Sourcepub fn push_napi_id(self, value: u32) -> Self
pub fn push_napi_id(self, value: u32) -> Self
ID of the NAPI instance which services this queue.
Sourcepub fn push_dmabuf(self, value: u32) -> Self
pub fn push_dmabuf(self, value: u32) -> Self
ID of the dmabuf attached to this queue, if any.
Sourcepub fn nested_io_uring(self) -> PushIoUringProviderInfo<Self>
pub fn nested_io_uring(self) -> PushIoUringProviderInfo<Self>
io_uring memory provider information.
Sourcepub fn nested_xsk(self) -> PushXskInfo<Self>
pub fn nested_xsk(self) -> PushXskInfo<Self>
XSK information for this queue, if any.
Trait Implementations§
Auto Trait Implementations§
impl<Prev> Freeze for PushQueue<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushQueue<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushQueue<Prev>where
Prev: Send,
impl<Prev> Sync for PushQueue<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushQueue<Prev>where
Prev: Unpin,
impl<Prev> UnwindSafe for PushQueue<Prev>where
Prev: UnwindSafe,
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