pub struct Descriptor {
pub address: u64,
pub len: u32,
pub access: DescriptorAccess,
}Expand description
A single descriptor within a DescriptorChain.
Fields§
§address: u64Guest memory address of this descriptor. If IOMMU is enabled, this is an IOVA, which must be translated via the IOMMU to get a guest physical address.
len: u32Length of the descriptor in bytes.
access: DescriptorAccessWhether this descriptor should be treated as writable or readable by the device.
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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