Struct driver_virtio::pci::DeviceFunctionInfo
pub struct DeviceFunctionInfo {
pub vendor_id: u16,
pub device_id: u16,
pub class: u8,
pub subclass: u8,
pub prog_if: u8,
pub revision: u8,
pub header_type: HeaderType,
}Expand description
Information about a PCI device function.
Fields§
§vendor_id: u16The PCI vendor ID.
device_id: u16The PCI device ID.
class: u8The PCI class.
subclass: u8The PCI subclass.
prog_if: u8The PCI programming interface byte.
revision: u8The PCI revision ID.
header_type: HeaderTypeThe type of PCI device.
Trait Implementations§
§impl Clone for DeviceFunctionInfo
impl Clone for DeviceFunctionInfo
§fn clone(&self) -> DeviceFunctionInfo
fn clone(&self) -> DeviceFunctionInfo
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 more§impl Debug for DeviceFunctionInfo
impl Debug for DeviceFunctionInfo
§impl Display for DeviceFunctionInfo
impl Display for DeviceFunctionInfo
§impl PartialEq<DeviceFunctionInfo> for DeviceFunctionInfo
impl PartialEq<DeviceFunctionInfo> for DeviceFunctionInfo
§fn eq(&self, other: &DeviceFunctionInfo) -> bool
fn eq(&self, other: &DeviceFunctionInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DeviceFunctionInfo
impl StructuralEq for DeviceFunctionInfo
impl StructuralPartialEq for DeviceFunctionInfo
Auto Trait Implementations§
impl RefUnwindSafe for DeviceFunctionInfo
impl Send for DeviceFunctionInfo
impl Sync for DeviceFunctionInfo
impl Unpin for DeviceFunctionInfo
impl UnwindSafe for DeviceFunctionInfo
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