[][src]Struct xsk_rs::CompQueue

pub struct CompQueue<'umem> { /* fields omitted */ }

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

impl Send for CompQueue<'_>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.