pub struct ThermoMeasurement {
pub temperature: f32,
pub humidity: f32,
}Expand description
Temperature and humidity measurement.
This is a re-export wrapper around the measurement from the hs3003 crate.
Fields§
§temperature: f32Temperature in degrees Celsius
humidity: f32Relative humidity in percentage (0-100)
Implementations§
Trait Implementations§
Source§impl Clone for ThermoMeasurement
impl Clone for ThermoMeasurement
Source§fn clone(&self) -> ThermoMeasurement
fn clone(&self) -> ThermoMeasurement
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 ThermoMeasurement
impl Debug for ThermoMeasurement
Source§impl Default for ThermoMeasurement
impl Default for ThermoMeasurement
Source§fn default() -> ThermoMeasurement
fn default() -> ThermoMeasurement
Returns the “default value” for a type. Read more
Source§impl Format for ThermoMeasurement
impl Format for ThermoMeasurement
Source§impl From<Measurement> for ThermoMeasurement
impl From<Measurement> for ThermoMeasurement
Source§fn from(m: Measurement) -> Self
fn from(m: Measurement) -> Self
Converts to this type from the input type.
impl Copy for ThermoMeasurement
Auto Trait Implementations§
impl Freeze for ThermoMeasurement
impl RefUnwindSafe for ThermoMeasurement
impl Send for ThermoMeasurement
impl Sync for ThermoMeasurement
impl Unpin for ThermoMeasurement
impl UnwindSafe for ThermoMeasurement
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