#[repr(C)]pub struct FieldData { /* private fields */ }Expand description
Contains read sensors values e.g. temperature, pressure, humidity etc.
Implementations§
Source§impl FieldData
impl FieldData
Sourcepub fn temperature_celsius(&self) -> f32
pub fn temperature_celsius(&self) -> f32
Temperature in degree celsius (°C)
Sourcepub fn pressure_hpa(&self) -> f32
pub fn pressure_hpa(&self) -> f32
Pressure in hectopascal (hPA)
Sourcepub fn humidity_percent(&self) -> f32
pub fn humidity_percent(&self) -> f32
Humidity in % relative humidity
pub fn gas_resistance_ohm(&self) -> u32
Sourcepub fn heat_stable(&self) -> bool
pub fn heat_stable(&self) -> bool
Whether the heater target temperature for the gas reading was reached.
If this values is false, the heating duration was likely too short or
the target temperature too high.
Trait Implementations§
impl Copy for FieldData
Auto Trait Implementations§
impl Freeze for FieldData
impl RefUnwindSafe for FieldData
impl Send for FieldData
impl Sync for FieldData
impl Unpin for FieldData
impl UnwindSafe for FieldData
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