Struct PciAttributes

Source
pub struct PciAttributes {
Show 32 fields pub class: u32, pub subsystem_vendor: String, pub subsystem_device: String, pub dma_mask_bits: u8, pub vendor: String, pub device: String, pub enable: u8, pub revision: u16, pub irq: u8, pub local_cpus: u8, pub uevent: Option<UEvent>, pub resource: Vec<u64>, pub ari_enabled: u8, pub current_link_width: u8, pub max_link_width: u8, pub msi_bus: u8, pub consistent_dma_mask_bits: u8, pub secondary_bus_number: u8, pub subordinate_bus_number: u8, pub broken_parity_status: u8, pub d3cold_allowed: u8, pub numa_node: i8, pub modalias: String, pub current_link_speed: String, pub max_link_speed: String, pub driver_override: Option<String>, pub local_cpulist: String, pub aer_dev_fatal: String, pub aer_dev_nonfatal: String, pub aer_dev_correctable: String, pub config: Vec<u8>, pub attributes: HashMap<String, String>,
}

Fields§

§class: u32§subsystem_vendor: String§subsystem_device: String§dma_mask_bits: u8§vendor: String§device: String§enable: u8§revision: u16§irq: u8§local_cpus: u8§uevent: Option<UEvent>§resource: Vec<u64>§ari_enabled: u8§current_link_width: u8§max_link_width: u8§msi_bus: u8§consistent_dma_mask_bits: u8§secondary_bus_number: u8§subordinate_bus_number: u8§broken_parity_status: u8§d3cold_allowed: u8§numa_node: i8§modalias: String§current_link_speed: String§max_link_speed: String§driver_override: Option<String>§local_cpulist: String§aer_dev_fatal: String§aer_dev_nonfatal: String§aer_dev_correctable: String§config: Vec<u8>§attributes: HashMap<String, String>

Trait Implementations§

Source§

impl Default for PciAttributes

Source§

fn default() -> PciAttributes

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.