pub struct PowerTracker {
pub samples: Vec<PowerSample>,
pub label: String,
}Fields§
§samples: Vec<PowerSample>§label: StringImplementations§
Source§impl PowerTracker
impl PowerTracker
pub fn new(label: &str) -> Self
pub fn sample(&mut self, source: &dyn PowerSource)
pub fn energy(&self) -> EnergyResult
Auto Trait Implementations§
impl Freeze for PowerTracker
impl RefUnwindSafe for PowerTracker
impl Send for PowerTracker
impl Sync for PowerTracker
impl Unpin for PowerTracker
impl UnsafeUnpin for PowerTracker
impl UnwindSafe for PowerTracker
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