pub struct GpuStats {Show 13 fields
pub index: u32,
pub vendor: String,
pub name: String,
pub utilization_percent: Option<f32>,
pub memory_utilization_percent: Option<f32>,
pub memory_used_bytes: Option<u64>,
pub memory_total_bytes: Option<u64>,
pub temperature_c: Option<f32>,
pub power_w: Option<f32>,
pub power_limit_w: Option<f32>,
pub fan_percent: Option<f32>,
pub clock_mhz: Option<u32>,
pub processes: Vec<GpuProcess>,
}Expand description
A single GPU.
Fields§
§index: u32Index within its vendor API (NVML index for NVIDIA).
vendor: StringVendor name (“NVIDIA”, “AMD”, …).
name: StringMarketing name of the device.
utilization_percent: Option<f32>Core utilization.
memory_utilization_percent: Option<f32>Memory controller utilization.
memory_used_bytes: Option<u64>VRAM in use.
memory_total_bytes: Option<u64>Total VRAM.
temperature_c: Option<f32>Core temperature.
power_w: Option<f32>Current board power draw.
power_limit_w: Option<f32>Enforced power limit.
fan_percent: Option<f32>Fan speed as a percentage of the maximum (first fan).
clock_mhz: Option<u32>Graphics clock in MHz.
processes: Vec<GpuProcess>Processes currently using this GPU.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GpuStats
impl<'de> Deserialize<'de> for GpuStats
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
Auto Trait Implementations§
impl Freeze for GpuStats
impl RefUnwindSafe for GpuStats
impl Send for GpuStats
impl Sync for GpuStats
impl Unpin for GpuStats
impl UnsafeUnpin for GpuStats
impl UnwindSafe for GpuStats
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