#[repr(C)]pub struct Descriptor {
pub addr: u64,
pub len: u32,
pub flags: u16,
pub next: u16,
}Expand description
A single descriptor in the descriptor table.
Fields§
§addr: u64Guest physical address of the buffer.
len: u32Length of the buffer.
flags: u16Descriptor flags.
next: u16Next descriptor index (if NEXT flag is set).
Implementations§
Source§impl Descriptor
impl Descriptor
Sourcepub const fn is_write_only(&self) -> bool
pub const fn is_write_only(&self) -> bool
Checks if this descriptor is write-only.
Sourcepub const fn is_indirect(&self) -> bool
pub const fn is_indirect(&self) -> bool
Checks if this descriptor is indirect.
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Descriptor
impl Debug for Descriptor
Source§impl Default for Descriptor
impl Default for Descriptor
Source§fn default() -> Descriptor
fn default() -> Descriptor
Returns the “default value” for a type. Read more
impl Copy for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnsafeUnpin 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