pub struct GpuInfo {
pub index: usize,
pub name: String,
pub utilization_percent: Option<f64>,
pub memory_used_mb: Option<f64>,
pub memory_total_mb: Option<f64>,
pub process_used_mb: Option<f64>,
pub source: String,
}Expand description
GPU utilisation snapshot for a single device.
Fields§
§index: usize§name: String§utilization_percent: Option<f64>§memory_used_mb: Option<f64>§memory_total_mb: Option<f64>§process_used_mb: Option<f64>Memory used by the inspected PID on this GPU (NVIDIA, when available).
source: String“nvml”, “sysfs”, or “nvidia-smi”
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 UnsafeUnpin 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