#[repr(C)]pub struct FieldData { /* private fields */ }
Expand description
Contains read sensors values e.g. temperature, pressure, humidity etc.
Implementations
sourceimpl 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
Trait Implementations
impl Copy for FieldData
Auto Trait Implementations
impl RefUnwindSafe for FieldData
impl Send for FieldData
impl Sync for FieldData
impl Unpin for FieldData
impl UnwindSafe for FieldData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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