pub struct EnergyMetrics {
pub total_power: f64,
pub cpu_power: f64,
pub gpu_power: Option<f64>,
pub memory_power: f64,
pub storage_power: f64,
pub cooling_power: f64,
pub energy_efficiency: f64,
}Expand description
Energy consumption metrics
Fields§
§total_power: f64Total power consumption (watts)
cpu_power: f64CPU power consumption
gpu_power: Option<f64>GPU power consumption
memory_power: f64Memory power consumption
storage_power: f64Storage power consumption
cooling_power: f64Cooling power consumption
energy_efficiency: f64Energy efficiency (tasks/joule)
Trait Implementations§
Source§impl Clone for EnergyMetrics
impl Clone for EnergyMetrics
Source§fn clone(&self) -> EnergyMetrics
fn clone(&self) -> EnergyMetrics
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 EnergyMetrics
impl Debug for EnergyMetrics
Auto Trait Implementations§
impl Freeze for EnergyMetrics
impl RefUnwindSafe for EnergyMetrics
impl Send for EnergyMetrics
impl Sync for EnergyMetrics
impl Unpin for EnergyMetrics
impl UnwindSafe for EnergyMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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