#[repr(C)]struct virtio_pci_common_cfg {Show 19 fields
device_feature_select: u32,
device_feature: u32,
guest_feature_select: u32,
guest_feature: u32,
msix_config: u16,
num_queues: u16,
device_status: u8,
config_generation: u8,
queue_select: u16,
queue_size: u16,
queue_msix_vector: u16,
queue_enable: u16,
queue_notify_off: u16,
queue_desc_lo: u32,
queue_desc_hi: u32,
queue_avail_lo: u32,
queue_avail_hi: u32,
queue_used_lo: u32,
queue_used_hi: u32,
}Expand description
VirtIO spec: 4.1.4.3 Common configuration structure layout
Fields§
§device_feature_select: u32§device_feature: u32§guest_feature_select: u32§guest_feature: u32§msix_config: u16§num_queues: u16§device_status: u8§config_generation: u8§queue_select: u16§queue_size: u16§queue_msix_vector: u16§queue_enable: u16§queue_notify_off: u16§queue_desc_lo: u32§queue_desc_hi: u32§queue_avail_lo: u32§queue_avail_hi: u32§queue_used_lo: u32§queue_used_hi: u32Trait Implementations§
source§impl AsBytes for virtio_pci_common_cfg
impl AsBytes for virtio_pci_common_cfg
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
source§impl Clone for virtio_pci_common_cfg
impl Clone for virtio_pci_common_cfg
source§fn clone(&self) -> virtio_pci_common_cfg
fn clone(&self) -> virtio_pci_common_cfg
Returns a copy 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 virtio_pci_common_cfg
impl Debug for virtio_pci_common_cfg
source§impl Default for virtio_pci_common_cfg
impl Default for virtio_pci_common_cfg
source§fn default() -> virtio_pci_common_cfg
fn default() -> virtio_pci_common_cfg
Returns the “default value” for a type. Read more
source§impl FromBytes for virtio_pci_common_cfg
impl FromBytes for virtio_pci_common_cfg
§fn read_from_prefix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_prefix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
§fn read_from_suffix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_suffix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes.impl Copy for virtio_pci_common_cfg
Auto Trait Implementations§
impl RefUnwindSafe for virtio_pci_common_cfg
impl Send for virtio_pci_common_cfg
impl Sync for virtio_pci_common_cfg
impl Unpin for virtio_pci_common_cfg
impl UnwindSafe for virtio_pci_common_cfg
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.