#[repr(C)]pub struct VirtqUsedElem {
pub id: u32,
pub len: u32,
}Expand description
VirtIO used ring element structure.
This structure represents the memory layout of a single element in the used ring array according to the VirtIO specification. Each element records information about a completed descriptor chain.
This structure is used by UsedRing to read/write individual used
elements in guest memory through the guest memory accessor.
Fields§
§id: u32Index of start of used descriptor chain
len: u32Total length of the descriptor chain which was used
Implementations§
Trait Implementations§
Source§impl Clone for VirtqUsedElem
impl Clone for VirtqUsedElem
Source§fn clone(&self) -> VirtqUsedElem
fn clone(&self) -> VirtqUsedElem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VirtqUsedElem
Auto Trait Implementations§
impl Freeze for VirtqUsedElem
impl RefUnwindSafe for VirtqUsedElem
impl Send for VirtqUsedElem
impl Sync for VirtqUsedElem
impl Unpin for VirtqUsedElem
impl UnsafeUnpin for VirtqUsedElem
impl UnwindSafe for VirtqUsedElem
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