pub struct Readings {
pub temperature: f32,
pub humidity: u8,
pub battery_voltage: u16,
pub battery_percent: u16,
}
Expand description
A set of readings from a Mijia sensor.
Fields
temperature: f32
Temperature in ºC, with 2 decimal places of precision
humidity: u8
Percent humidity
battery_voltage: u16
Voltage in millivolts
battery_percent: u16
Inferred from battery_voltage
with a bit of hand-waving.
Trait Implementations
impl StructuralPartialEq for Readings
Auto Trait Implementations
impl RefUnwindSafe for Readings
impl Send for Readings
impl Sync for Readings
impl Unpin for Readings
impl UnwindSafe for Readings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more