pub struct GpuInfo {
pub index: Option<u32>,
pub name: Option<String>,
pub utilization_pct: Option<f64>,
pub memory_total_bytes: Option<u64>,
pub memory_used_bytes: Option<u64>,
pub memory_usage_pct: Option<f64>,
pub temperature_c: Option<f64>,
pub power_w: Option<f64>,
pub driver_version: Option<String>,
pub cuda_version: Option<String>,
}Expand description
GPU information.
Fields§
§index: Option<u32>GPU index
name: Option<String>GPU name
utilization_pct: Option<f64>GPU utilization percentage (0-100)
memory_total_bytes: Option<u64>Memory total in bytes
memory_used_bytes: Option<u64>Memory used in bytes
memory_usage_pct: Option<f64>Memory usage percentage
temperature_c: Option<f64>GPU temperature in Celsius
power_w: Option<f64>Power usage in watts
driver_version: Option<String>Driver version
cuda_version: Option<String>CUDA version (if NVIDIA)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GpuInfo
impl<'de> Deserialize<'de> for GpuInfo
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 GpuInfo
impl RefUnwindSafe for GpuInfo
impl Send for GpuInfo
impl Sync for GpuInfo
impl Unpin for GpuInfo
impl UnwindSafe for GpuInfo
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