pub struct HardwareReport {
pub thermal: ThermalStatus,
pub battery: BatteryLevel,
pub cpu_load: f32,
pub gpu_load: Option<f32>,
pub gpu_timings: Option<GpuReport>,
}Expand description
A report of physical hardware status (CPU, thermal, etc.).
Fields§
§thermal: ThermalStatusCurrent thermal status.
battery: BatteryLevelCurrent battery/power status.
cpu_load: f32Overall CPU load (0.0 to 1.0).
gpu_load: Option<f32>Overall GPU load (0.0 to 1.0), if reported by the hardware monitor.
gpu_timings: Option<GpuReport>Detailed GPU timing report for the current frame.
Trait Implementations§
Source§impl Clone for HardwareReport
impl Clone for HardwareReport
Source§fn clone(&self) -> HardwareReport
fn clone(&self) -> HardwareReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HardwareReport
impl Debug for HardwareReport
Source§impl Default for HardwareReport
impl Default for HardwareReport
Source§fn default() -> HardwareReport
fn default() -> HardwareReport
Returns the “default value” for a type. Read more
impl Copy for HardwareReport
Auto Trait Implementations§
impl Freeze for HardwareReport
impl RefUnwindSafe for HardwareReport
impl Send for HardwareReport
impl Sync for HardwareReport
impl Unpin for HardwareReport
impl UnwindSafe for HardwareReport
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