pub struct DatabaseStats {
pub vendor_count: usize,
pub device_count: usize,
pub subsystem_count: usize,
pub class_count: usize,
pub subclass_count: usize,
pub prog_interface_count: usize,
}Expand description
Statistics about the PCI database.
Fields§
§vendor_count: usizeNumber of vendors
device_count: usizeTotal number of devices across all vendors
subsystem_count: usizeTotal number of subsystems across all devices
class_count: usizeNumber of device classes
subclass_count: usizeTotal number of subclasses across all classes
prog_interface_count: usizeTotal number of programming interfaces across all subclasses
Implementations§
Source§impl DatabaseStats
impl DatabaseStats
Sourcepub fn total_entries(&self) -> usize
pub fn total_entries(&self) -> usize
Get the total number of entries in the database.
Trait Implementations§
Source§impl Clone for DatabaseStats
impl Clone for DatabaseStats
impl Copy for DatabaseStats
Source§impl Debug for DatabaseStats
impl Debug for DatabaseStats
Auto Trait Implementations§
impl Freeze for DatabaseStats
impl RefUnwindSafe for DatabaseStats
impl Send for DatabaseStats
impl Sync for DatabaseStats
impl Unpin for DatabaseStats
impl UnsafeUnpin for DatabaseStats
impl UnwindSafe for DatabaseStats
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