[−][src]Struct xsk_rs::CompQueue
Used to transfer ownership of UMEM frames from kernel-space to user-space.
Frames received in this queue are those that have been sent via the TxQueue.
For more information see the docs
Implementations
impl CompQueue<'_>
[src]
pub fn consume(&mut self, descs: &mut [FrameDesc<'_>]) -> usize
[src]
Update descs
with frames whose contents have been sent
(after submission via the TxQueue and
may now be used again.
The number of entries updated will be less than or equal to
the length of descs
. Entries will be updated sequentially
from the start of descs
until the end. Returns the number
of elements of descs
which have been updated.
Free frames should be added back on to either the FillQueue for data receipt or the TxQueue for data transmission.
Trait Implementations
Auto Trait Implementations
impl<'umem> RefUnwindSafe for CompQueue<'umem>
[src]
impl<'umem> !Sync for CompQueue<'umem>
[src]
impl<'umem> Unpin for CompQueue<'umem>
[src]
impl<'umem> UnwindSafe for CompQueue<'umem>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,