Struct virtio_device::ring::Desc
source · #[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)