#[repr(C)]pub struct RawDescriptor(/* private fields */);
Expand description
A virtio descriptor’s layout constraints with C representation. This is a unified representation of the memory layout order for packed descriptors and split descriptors. This type corresponds to struct virtq_desc, see: https://docs.oasis-open.org/virtio/virtio/v1.3/csd01/virtio-v1.3-csd01.html#x1-720008
Trait Implementations§
Source§impl ByteValued for RawDescriptor
impl ByteValued for RawDescriptor
Source§fn from_slice(data: &[u8]) -> Option<&Self>
fn from_slice(data: &[u8]) -> Option<&Self>
Converts a slice of raw data into a reference of
Self
. Read moreSource§fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
Converts a mutable slice of raw data into a mutable reference of
Self
. Read moreSource§fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Converts a mutable reference to
self
into a mutable slice of bytes. Read moreSource§fn as_bytes(&mut self) -> VolatileSlice<'_>
fn as_bytes(&mut self) -> VolatileSlice<'_>
Converts a mutable reference to
self
into a VolatileSlice
. This is
useful because VolatileSlice
provides a Bytes<usize>
implementation. Read moreSource§impl Clone for RawDescriptor
impl Clone for RawDescriptor
Source§fn clone(&self) -> RawDescriptor
fn clone(&self) -> RawDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RawDescriptor
impl Debug for RawDescriptor
Source§impl Default for RawDescriptor
impl Default for RawDescriptor
Source§fn default() -> RawDescriptor
fn default() -> RawDescriptor
Returns the “default value” for a type. Read more
Source§impl From<Descriptor> for RawDescriptor
impl From<Descriptor> for RawDescriptor
Source§fn from(desc: Descriptor) -> Self
fn from(desc: Descriptor) -> Self
Converts to this type from the input type.
Source§impl From<Descriptor> for RawDescriptor
impl From<Descriptor> for RawDescriptor
Source§fn from(desc: Descriptor) -> Self
fn from(desc: Descriptor) -> Self
Converts to this type from the input type.
Source§impl From<RawDescriptor> for Descriptor
impl From<RawDescriptor> for Descriptor
Source§fn from(desc: RawDescriptor) -> Descriptor
fn from(desc: RawDescriptor) -> Descriptor
Converts to this type from the input type.
Source§impl From<RawDescriptor> for Descriptor
impl From<RawDescriptor> for Descriptor
Source§fn from(desc: RawDescriptor) -> Descriptor
fn from(desc: RawDescriptor) -> Descriptor
Converts to this type from the input type.
impl Copy for RawDescriptor
Auto Trait Implementations§
impl Freeze for RawDescriptor
impl RefUnwindSafe for RawDescriptor
impl Send for RawDescriptor
impl Sync for RawDescriptor
impl Unpin for RawDescriptor
impl UnwindSafe for RawDescriptor
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