[][src]Struct tinypci::PciDeviceInfo

pub struct PciDeviceInfo {
    pub device: u8,
    pub bus: u8,
    pub device_id: u16,
    pub vendor_id: u16,
    pub full_class: PciFullClass,
    pub header_type: u8,
    pub bars: [u32; 6],
    pub supported_fns: [bool; 8],
    pub interrupt_line: u8,
    pub interrupt_pin: u8,
}

A struct containing info about a PCI device.

Fields

device: u8bus: u8device_id: u16vendor_id: u16full_class: PciFullClassheader_type: u8bars: [u32; 6]supported_fns: [bool; 8]interrupt_line: u8interrupt_pin: u8

Methods

impl PciDeviceInfo[src]

pub fn class(&self) -> PciClass[src]

Get the class of the PCI device as a PciClass

pub fn subclass(&self) -> PciClass[src]

Get the full class of the PCI device as a PciFullClass

Trait Implementations

impl Clone for PciDeviceInfo[src]

impl Debug for PciDeviceInfo[src]

impl Display for PciDeviceInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.