pub struct RawTempAndRelHumid {
pub temperature: u16,
pub humidity: u16,
}
Expand description
Raw (still in u16 format) temperature and relative humidity from the device
Fields§
§temperature: u16
unprocessed temperature
humidity: u16
unprocessed relative humiodity
Implementations§
Source§impl RawTempAndRelHumid
impl RawTempAndRelHumid
Sourcepub fn fahrenheit(&self) -> f32
pub fn fahrenheit(&self) -> f32
Get temperature in Fahrenheit
Sourcepub fn centigrade(&self) -> f32
pub fn centigrade(&self) -> f32
Get temperature in Centigrade
Sourcepub fn humidity_percent(&self) -> f32
pub fn humidity_percent(&self) -> f32
Get relative humidity in percent
Trait Implementations§
Source§impl Debug for RawTempAndRelHumid
impl Debug for RawTempAndRelHumid
Source§impl From<&RawTempAndRelHumid> for TempAndRelHumid
impl From<&RawTempAndRelHumid> for TempAndRelHumid
Source§fn from(raw: &RawTempAndRelHumid) -> Self
fn from(raw: &RawTempAndRelHumid) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RawTempAndRelHumid
impl RefUnwindSafe for RawTempAndRelHumid
impl Send for RawTempAndRelHumid
impl Sync for RawTempAndRelHumid
impl Unpin for RawTempAndRelHumid
impl UnwindSafe for RawTempAndRelHumid
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