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§impl Debug for PowerMetrics
impl Debug for PowerMetrics
Source§impl PartialEq for PowerMetrics
impl PartialEq for PowerMetrics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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