pub struct Value {
pub precision: u8,
pub scale: u8,
pub size: u8,
pub raw: i32,
}Expand description
A sensor, meter or battery health value: a signed integer of 1, 2 or 4 bytes with a decimal precision and a scale.
Fields§
§precision: u8Decimal places (0 to 7).
scale: u8Scale (unit) bits stored with the value (0 to 3).
size: u8Size in bytes: 1, 2 or 4.
raw: i32The integer as sent.
Implementations§
Trait Implementations§
impl Copy for Value
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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