pub struct DeviceReading {
pub power_mw: Option<u64>,
pub energy_counter_mj: Option<u64>,
pub graphics_clock_mhz: Option<u64>,
pub sm_clock_mhz: Option<u64>,
pub mem_clock_mhz: Option<u64>,
pub temperature_c: Option<u64>,
pub clocks_event_reasons: Option<u64>,
pub mem_used_bytes: Option<u64>,
pub mem_total_bytes: Option<u64>,
pub pcie_tx_kbps: Option<u64>,
pub pcie_rx_kbps: Option<u64>,
pub nvlink_active_links: Option<u64>,
}Expand description
2026-09-26: One reading. None: the device or driver does not report the
field, or reading it failed.
Fields§
§power_mw: Option<u64>§energy_counter_mj: Option<u64>2026-09-26: The raw cumulative counter, millijoules since driver load.
graphics_clock_mhz: Option<u64>§sm_clock_mhz: Option<u64>§mem_clock_mhz: Option<u64>§temperature_c: Option<u64>§clocks_event_reasons: Option<u64>2026-09-26: NVML clocks-event-reasons bitmask.
mem_used_bytes: Option<u64>§mem_total_bytes: Option<u64>§pcie_tx_kbps: Option<u64>§pcie_rx_kbps: Option<u64>§nvlink_active_links: Option<u64>Implementations§
Source§impl DeviceReading
impl DeviceReading
Trait Implementations§
Source§impl Clone for DeviceReading
impl Clone for DeviceReading
Source§fn clone(&self) -> DeviceReading
fn clone(&self) -> DeviceReading
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 moreSource§impl Debug for DeviceReading
impl Debug for DeviceReading
Source§impl Default for DeviceReading
impl Default for DeviceReading
Source§fn default() -> DeviceReading
fn default() -> DeviceReading
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeviceReading
impl PartialEq for DeviceReading
Source§impl Serialize for DeviceReading
impl Serialize for DeviceReading
impl Copy for DeviceReading
impl Eq for DeviceReading
impl StructuralPartialEq for DeviceReading
Auto Trait Implementations§
impl Freeze for DeviceReading
impl RefUnwindSafe for DeviceReading
impl Send for DeviceReading
impl Sync for DeviceReading
impl Unpin for DeviceReading
impl UnwindSafe for DeviceReading
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.