pub struct DeviceInfo {
pub interface_id: u32,
pub domain: u16,
pub bus: u16,
pub slot: u16,
pub function: u16,
pub vendor: u16,
pub device_id: u16,
pub bar_size: u64,
}
Fields§
§interface_id: u32
§domain: u16
§bus: u16
§slot: u16
§function: u16
§vendor: u16
§device_id: u16
§bar_size: u64
Implementations§
Source§impl DeviceInfo
impl DeviceInfo
Sourcepub fn pcie_current_link_width(&self) -> u32
pub fn pcie_current_link_width(&self) -> u32
Return the current PCIe link width.
Sourcepub fn pcie_current_link_gen(&self) -> i32
pub fn pcie_current_link_gen(&self) -> i32
Return the current PCIe link generation.
Sourcepub fn pcie_max_link_width(&self) -> u32
pub fn pcie_max_link_width(&self) -> u32
Return the maximum PCIe link width.
Sourcepub fn pcie_max_link_gen(&self) -> i32
pub fn pcie_max_link_gen(&self) -> i32
Return the maximum PCIe link generation.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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