pub struct PciIdDb { /* private fields */ }Implementations§
Source§impl PciIdDb
impl PciIdDb
pub fn parse(text: &str) -> Self
pub fn lookup(&self, vendor: u16, device: u16) -> Option<String>
pub fn vendor_name(&self, vendor: u16) -> Option<String>
Sourcepub fn load_default() -> Self
pub fn load_default() -> Self
Load from the canonical path, falling back to the Debian-alternate path. Returns an empty DB if neither file exists.
Process-wide cached default DB. First call parses; subsequent calls return the cached reference. Plugins that don’t need PCI lookup never trigger the parse.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PciIdDb
impl RefUnwindSafe for PciIdDb
impl Send for PciIdDb
impl Sync for PciIdDb
impl Unpin for PciIdDb
impl UnsafeUnpin for PciIdDb
impl UnwindSafe for PciIdDb
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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