pub struct Measurement {
pub co2_ppm: u16,
pub temperature_c: f32,
pub relative_humidity_percent: f32,
}Expand description
Converted measurement values.
Fields§
§co2_ppm: u16CO₂ concentration in ppm.
temperature_c: f32Temperature in °C.
relative_humidity_percent: f32Relative humidity in %RH.
Implementations§
Source§impl Measurement
impl Measurement
Sourcepub fn from_raw(raw: RawMeasurement) -> Self
pub fn from_raw(raw: RawMeasurement) -> Self
Convert from raw word values.
Trait Implementations§
Source§impl Clone for Measurement
impl Clone for Measurement
Source§fn clone(&self) -> Measurement
fn clone(&self) -> Measurement
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 Measurement
impl Debug for Measurement
Source§impl PartialEq for Measurement
impl PartialEq for Measurement
impl Copy for Measurement
impl StructuralPartialEq for Measurement
Auto Trait Implementations§
impl Freeze for Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnwindSafe for Measurement
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