pub struct PowerSample {
pub watts: f64,
pub timestamp_us: u64,
}Fields§
§watts: f64§timestamp_us: u64Trait Implementations§
Source§impl Clone for PowerSample
impl Clone for PowerSample
Source§fn clone(&self) -> PowerSample
fn clone(&self) -> PowerSample
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 PowerSample
impl Debug for PowerSample
Source§impl<'de> Deserialize<'de> for PowerSample
impl<'de> Deserialize<'de> for PowerSample
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 PowerSample
impl RefUnwindSafe for PowerSample
impl Send for PowerSample
impl Sync for PowerSample
impl Unpin for PowerSample
impl UnsafeUnpin for PowerSample
impl UnwindSafe for PowerSample
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