pub struct EnergyMeasurement {
pub timestamp: SystemTime,
pub total_power: f64,
pub cpu_power: f64,
pub gpu_power: f64,
pub memory_power: f64,
pub network_power: f64,
pub storage_power: f64,
pub power_efficiency: f64,
}Expand description
Energy consumption measurement
Fields§
§timestamp: SystemTimeTimestamp
total_power: f64Total power consumption (watts)
cpu_power: f64CPU power consumption
gpu_power: f64GPU power consumption
memory_power: f64Memory power consumption
network_power: f64Network power consumption
storage_power: f64Storage power consumption
power_efficiency: f64Power efficiency (performance/watt)
Trait Implementations§
Source§impl Clone for EnergyMeasurement
impl Clone for EnergyMeasurement
Source§fn clone(&self) -> EnergyMeasurement
fn clone(&self) -> EnergyMeasurement
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 EnergyMeasurement
impl RefUnwindSafe for EnergyMeasurement
impl Send for EnergyMeasurement
impl Sync for EnergyMeasurement
impl Unpin for EnergyMeasurement
impl UnwindSafe for EnergyMeasurement
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