pub struct CompQueue { /* private fields */ }
Expand description
Implementations
sourceimpl CompQueue
impl CompQueue
sourcepub unsafe fn consume(&mut self, descs: &mut [FrameDesc]) -> usize
pub unsafe fn consume(&mut self, descs: &mut [FrameDesc]) -> usize
Update descs
with details of frames whose contents have been
sent (after submission via the TxQueue
) and may now be
used again. Returns the number of elements of descs
which
have been updated.
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.
Free frames should eventually be added back on to either the
FillQueue
or the TxQueue
.
Safety
The frames passed to this queue must belong to the same
Umem
that this CompQueue
instance is tied to.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CompQueue
impl Send for CompQueue
impl !Sync for CompQueue
impl Unpin for CompQueue
impl UnwindSafe for CompQueue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more