#[repr(C)]pub struct Desc { /* private fields */ }
Expand description
Virtio descriptor data structure
Represents the in memory format of virtio descriptors and provides some accessors.
Implementations§
Source§impl Desc
impl Desc
Sourcepub fn is_indirect(&self) -> bool
pub fn is_indirect(&self) -> bool
Returns whether the indirect bit is set.
Sourcepub fn write_only(&self) -> bool
pub fn write_only(&self) -> bool
Returns whether the write bit is set.
This flag should be ignored when is_indirect is true.
Sourcepub fn access_type(&self) -> DescAccess
pub fn access_type(&self) -> DescAccess
Return the descriptor access type.
This is a convenience wrapper around write_only to provide a safer type.
Trait Implementations§
impl Copy for Desc
Auto Trait Implementations§
impl Freeze for Desc
impl RefUnwindSafe for Desc
impl Send for Desc
impl Sync for Desc
impl Unpin for Desc
impl UnwindSafe for Desc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)