pub struct EnergyResult {
pub total_joules: f64,
pub mean_watts: f64,
pub peak_watts: f64,
pub duration_s: f64,
pub samples: usize,
}Fields§
§total_joules: f64§mean_watts: f64§peak_watts: f64§duration_s: f64§samples: usizeTrait Implementations§
Source§impl Clone for EnergyResult
impl Clone for EnergyResult
Source§fn clone(&self) -> EnergyResult
fn clone(&self) -> EnergyResult
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 EnergyResult
impl Debug for EnergyResult
Source§impl<'de> Deserialize<'de> for EnergyResult
impl<'de> Deserialize<'de> for EnergyResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EnergyResult
impl RefUnwindSafe for EnergyResult
impl Send for EnergyResult
impl Sync for EnergyResult
impl Unpin for EnergyResult
impl UnsafeUnpin for EnergyResult
impl UnwindSafe for EnergyResult
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