pub struct Measurement {
pub temp: Celsius,
pub hum: Humidity,
pub pres: Pressure,
pub gas: Gas,
}Expand description
Compensated measurement result in physical units.
All fields use strong types (Temperature, Humidity, etc.) to prevent unit confusion.
If a measurement was disabled in the Config, the corresponding field will contain 0.
Fields§
§temp: CelsiusCompensated temperature.
hum: HumidityCompensated relative humidity.
pres: PressureCompensated atmospheric pressure.
gas: GasCompensated gas resistance.
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 Default for Measurement
impl Default for Measurement
Source§fn default() -> Measurement
fn default() -> Measurement
Returns the “default value” for a type. Read more
impl Copy 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