Enum nvml_wrapper::enums::device::PcieLinkMaxSpeed
source · pub enum PcieLinkMaxSpeed {
Invalid,
MegaTransfersPerSecond2500,
MegaTransfersPerSecond5000,
MegaTransfersPerSecond8000,
MegaTransfersPerSecond16000,
MegaTransfersPerSecond32000,
}
Expand description
Returned by crate::Device::max_pcie_link_speed()
.
Note, the NVML header says these are all MBPS (Megabytes Per Second) but they don’t line up with the throughput numbers on this page: https://en.wikipedia.org/wiki/PCI_Express
They do line up with the “transfer rate per lane” numbers, though. This would mean they represent transfer speeds rather than throughput, in MT/s.
See also the discussion on crate::Device::pcie_link_speed()
.
Variants§
Invalid
MegaTransfersPerSecond2500
MegaTransfersPerSecond5000
MegaTransfersPerSecond8000
MegaTransfersPerSecond16000
MegaTransfersPerSecond32000
Implementations§
Trait Implementations§
source§impl Clone for PcieLinkMaxSpeed
impl Clone for PcieLinkMaxSpeed
source§fn clone(&self) -> PcieLinkMaxSpeed
fn clone(&self) -> PcieLinkMaxSpeed
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 PcieLinkMaxSpeed
impl Debug for PcieLinkMaxSpeed
source§impl Hash for PcieLinkMaxSpeed
impl Hash for PcieLinkMaxSpeed
source§impl PartialEq for PcieLinkMaxSpeed
impl PartialEq for PcieLinkMaxSpeed
source§fn eq(&self, other: &PcieLinkMaxSpeed) -> bool
fn eq(&self, other: &PcieLinkMaxSpeed) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for PcieLinkMaxSpeed
impl TryFrom<u32> for PcieLinkMaxSpeed
impl Eq for PcieLinkMaxSpeed
impl StructuralPartialEq for PcieLinkMaxSpeed
Auto Trait Implementations§
impl RefUnwindSafe for PcieLinkMaxSpeed
impl Send for PcieLinkMaxSpeed
impl Sync for PcieLinkMaxSpeed
impl Unpin for PcieLinkMaxSpeed
impl UnwindSafe for PcieLinkMaxSpeed
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