pub struct PowerMetrics {
pub current_power_w: f64,
pub thermal_state: ThermalState,
pub estimated_battery_hours: Option<f64>,
pub active_model_count: usize,
}Expand description
Aggregated power/thermal/battery snapshot for battery-aware ML scheduling.
Fields§
§current_power_w: f64Current estimated power draw in watts.
thermal_state: ThermalStateThermal state derived from the current power draw.
estimated_battery_hours: Option<f64>Estimated battery life remaining in hours, if a battery is present.
active_model_count: usizeNumber of models currently active on the device.
Trait Implementations§
Source§impl Clone for PowerMetrics
impl Clone for PowerMetrics
Source§fn clone(&self) -> PowerMetrics
fn clone(&self) -> PowerMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PowerMetrics
impl Debug for PowerMetrics
Source§impl PartialEq for PowerMetrics
impl PartialEq for PowerMetrics
Source§fn eq(&self, other: &PowerMetrics) -> bool
fn eq(&self, other: &PowerMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PowerMetrics
Auto Trait Implementations§
impl Freeze for PowerMetrics
impl RefUnwindSafe for PowerMetrics
impl Send for PowerMetrics
impl Sync for PowerMetrics
impl Unpin for PowerMetrics
impl UnsafeUnpin for PowerMetrics
impl UnwindSafe for PowerMetrics
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more