pub struct QueueCompletion { /* private fields */ }Expand description
The minimal state required to publish a completion to the used ring.
This is everything complete_descriptor needs — notably not the payload
buffer descriptors, which are only used while the device is reading/writing
guest memory. Devices that must buffer completions (e.g. in-order
publication) can hold a QueueCompletion instead of a full
VirtioQueueCallbackWork to avoid retaining the payload.
Implementations§
Source§impl QueueCompletion
impl QueueCompletion
pub fn descriptor_index(&self) -> u16
Auto Trait Implementations§
impl Freeze for QueueCompletion
impl RefUnwindSafe for QueueCompletion
impl Send for QueueCompletion
impl Sync for QueueCompletion
impl Unpin for QueueCompletion
impl UnsafeUnpin for QueueCompletion
impl UnwindSafe for QueueCompletion
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