pub struct PowerInfo {
pub power_consumption: Option<f32>,
pub cpu_temperature: Option<f32>,
pub gpu_temperature: Option<f32>,
pub throttling: bool,
pub voltage: Option<f32>,
}
Expand description
Power consumption and thermal information
Fields§
§power_consumption: Option<f32>
Current power consumption in watts
cpu_temperature: Option<f32>
CPU temperature in Celsius
gpu_temperature: Option<f32>
GPU temperature in Celsius (if available)
throttling: bool
Throttling status
voltage: Option<f32>
Power supply voltage
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PowerInfo
impl<'de> Deserialize<'de> for PowerInfo
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 PowerInfo
impl RefUnwindSafe for PowerInfo
impl Send for PowerInfo
impl Sync for PowerInfo
impl Unpin for PowerInfo
impl UnwindSafe for PowerInfo
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