Struct hwlocality::object::attributes::PCIDeviceAttributes
source · pub struct PCIDeviceAttributes(/* private fields */);
Expand description
PCIDevice
-specific attributes
Implementations§
source§impl PCIDeviceAttributes
impl PCIDeviceAttributes
sourcepub fn bus_device(&self) -> u8
pub fn bus_device(&self) -> u8
PCI bus device
sourcepub fn subvendor_id(&self) -> u16
pub fn subvendor_id(&self) -> u16
PCI sub-vendor ID
sourcepub fn subdevice_id(&self) -> u16
pub fn subdevice_id(&self) -> u16
PCI sub-device ID
sourcepub fn link_speed(&self) -> f32
pub fn link_speed(&self) -> f32
Link speed in GB/s
Trait Implementations§
source§impl Arbitrary for PCIDeviceAttributes
Available on crate feature proptest
only.
impl Arbitrary for PCIDeviceAttributes
Available on crate feature
proptest
only.§type Parameters = <(u32, [u8; 4], [u16; 5]) as Arbitrary>::Parameters
type Parameters = <(u32, [u8; 4], [u16; 5]) as Arbitrary>::Parameters
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<(u32, [u8; 4], [u16; 5]) as Arbitrary>::Strategy, Any), fn(_: ((u32, [u8; 4], [u16; 5]), f32)) -> PCIDeviceAttributes>
type Strategy = Map<(<(u32, [u8; 4], [u16; 5]) as Arbitrary>::Strategy, Any), fn(_: ((u32, [u8; 4], [u16; 5]), f32)) -> PCIDeviceAttributes>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy
source§impl Clone for PCIDeviceAttributes
impl Clone for PCIDeviceAttributes
source§fn clone(&self) -> PCIDeviceAttributes
fn clone(&self) -> PCIDeviceAttributes
Returns a copy 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 moresource§impl Debug for PCIDeviceAttributes
impl Debug for PCIDeviceAttributes
source§impl Default for PCIDeviceAttributes
impl Default for PCIDeviceAttributes
source§fn default() -> PCIDeviceAttributes
fn default() -> PCIDeviceAttributes
Returns the “default value” for a type. Read more
source§impl PartialEq for PCIDeviceAttributes
impl PartialEq for PCIDeviceAttributes
impl Copy for PCIDeviceAttributes
impl StructuralPartialEq for PCIDeviceAttributes
Auto Trait Implementations§
impl Freeze for PCIDeviceAttributes
impl RefUnwindSafe for PCIDeviceAttributes
impl Send for PCIDeviceAttributes
impl Sync for PCIDeviceAttributes
impl Unpin for PCIDeviceAttributes
impl UnwindSafe for PCIDeviceAttributes
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)