pub struct EnergyStats {
pub current: Option<StatSummary>,
pub voltage: Option<StatSummary>,
pub power: Option<StatSummary>,
pub extra: Map<String, Value>,
}Expand description
Statistics from an energy-analyzer read_stats action.
Fields§
§current: Option<StatSummary>Current statistics (A).
voltage: Option<StatSummary>Voltage statistics (V).
power: Option<StatSummary>Power statistics (W).
extra: Map<String, Value>Any extra analyzer-specific fields.
Trait Implementations§
Source§impl Clone for EnergyStats
impl Clone for EnergyStats
Source§fn clone(&self) -> EnergyStats
fn clone(&self) -> EnergyStats
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 EnergyStats
impl Debug for EnergyStats
Source§impl<'de> Deserialize<'de> for EnergyStats
impl<'de> Deserialize<'de> for EnergyStats
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 EnergyStats
impl RefUnwindSafe for EnergyStats
impl Send for EnergyStats
impl Sync for EnergyStats
impl Unpin for EnergyStats
impl UnsafeUnpin for EnergyStats
impl UnwindSafe for EnergyStats
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