pub struct PCIDevice {
pub device_id: String,
pub vendor_name: String,
pub device_name: String,
pub bus_location: String,
pub device_class: String,
pub subsystem_id: Option<String>,
pub driver: Option<String>,
pub revision: Option<String>,
pub irq: Option<u32>,
pub memory_regions: Vec<String>,
}
Expand description
PCI device information
Fields§
§device_id: String
PCI device ID (vendor:device)
vendor_name: String
PCI vendor name
device_name: String
PCI device name
bus_location: String
PCI bus location
device_class: String
PCI device class
subsystem_id: Option<String>
PCI subsystem ID
driver: Option<String>
Driver name (if loaded)
revision: Option<String>
Device revision
irq: Option<u32>
IRQ number
memory_regions: Vec<String>
Memory regions
Implementations§
Source§impl PCIDevice
impl PCIDevice
Sourcepub fn vendor_name(&self) -> &str
pub fn vendor_name(&self) -> &str
Get vendor name
Sourcepub fn device_name(&self) -> &str
pub fn device_name(&self) -> &str
Get device name
Sourcepub fn device_class(&self) -> &str
pub fn device_class(&self) -> &str
Get device class
Sourcepub fn is_graphics_device(&self) -> bool
pub fn is_graphics_device(&self) -> bool
Check if device is a graphics card
Sourcepub fn is_network_device(&self) -> bool
pub fn is_network_device(&self) -> bool
Check if device is a network controller
Sourcepub fn is_storage_device(&self) -> bool
pub fn is_storage_device(&self) -> bool
Check if device is a storage controller
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PCIDevice
impl<'de> Deserialize<'de> for PCIDevice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PCIDevice
impl RefUnwindSafe for PCIDevice
impl Send for PCIDevice
impl Sync for PCIDevice
impl Unpin for PCIDevice
impl UnwindSafe for PCIDevice
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