pub struct AssetNow {
pub power: Option<Reading>,
pub soc: Option<Reading>,
pub offline_since: Option<i64>,
pub quality: Quality,
}Expand description
An asset now: its readings and its overall quality (that of its power).
Fields§
§power: Option<Reading>Power now.
soc: Option<Reading>State of charge now (batteries).
offline_since: Option<i64>Since when the asset has had no connection, Unix seconds.
quality: QualityThe asset’s quality: offline without a connection or a power value, else the power’s.
Implementations§
Trait Implementations§
impl Copy for AssetNow
impl StructuralPartialEq for AssetNow
Auto Trait Implementations§
impl Forget for AssetNow
impl Freeze for AssetNow
impl Move for AssetNow
impl RefUnwindSafe for AssetNow
impl Send for AssetNow
impl Sync for AssetNow
impl Unpin for AssetNow
impl UnsafeUnpin for AssetNow
impl UnwindSafe for AssetNow
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