pub struct PCI {
pub domain: u32,
pub bus: u32,
pub device: u32,
pub function: u32,
}Expand description
A PCI (Peripheral Component Interconnect) is an architecture used to identify and manage hardware devices.
It is returned by Gpu::pci.
If you want to understand in details what a PCI is, I recommend: https://en.wikipedia.org/wiki/Peripheral_Component_Interconnect.
Fields§
§domain: u32A PCI domain, also called “segment”.
bus: u32A PCI bus.
device: u32A PCI device.
function: u32A PCI function.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PCI
impl<'de> Deserialize<'de> for PCI
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PCI
Source§impl Ord for PCI
impl Ord for PCI
1.21.0 (const: unstable)§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable)§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PCI
impl PartialOrd for PCI
impl StructuralPartialEq for PCI
Auto Trait Implementations§
impl Freeze for PCI
impl RefUnwindSafe for PCI
impl Send for PCI
impl Sync for PCI
impl Unpin for PCI
impl UnsafeUnpin for PCI
impl UnwindSafe for PCI
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)