pub trait PowerSource {
// Required method
fn read_watts(&self) -> f64;
}Expand description
Trait for reading instantaneous power (NVML, RAPL, etc.).
pub trait PowerSource {
// Required method
fn read_watts(&self) -> f64;
}Trait for reading instantaneous power (NVML, RAPL, etc.).