pub struct DeviceRenderState {
pub device_id: DeviceId,
pub name: String,
pub utilization_pct: f64,
pub temperature_c: f64,
pub power_watts: f64,
pub power_limit_watts: f64,
pub clock_mhz: u32,
pub history: VecDeque<f64>,
}Expand description
Device render state
Fields§
§device_id: DeviceIdDevice ID
name: StringDevice name
utilization_pct: f64Utilization percentage
temperature_c: f64Temperature in Celsius
power_watts: f64Power in Watts
power_limit_watts: f64Power limit in Watts
clock_mhz: u32Clock speed in MHz
history: VecDeque<f64>Utilization history
Trait Implementations§
Source§impl Clone for DeviceRenderState
impl Clone for DeviceRenderState
Source§fn clone(&self) -> DeviceRenderState
fn clone(&self) -> DeviceRenderState
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 moreAuto Trait Implementations§
impl Freeze for DeviceRenderState
impl RefUnwindSafe for DeviceRenderState
impl Send for DeviceRenderState
impl Sync for DeviceRenderState
impl Unpin for DeviceRenderState
impl UnsafeUnpin for DeviceRenderState
impl UnwindSafe for DeviceRenderState
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