pub struct SensorReading {
pub humidity: f32,
pub temperature: f32,
}
Expand description
A valid reading from the DHT22 sensor
Fields§
§humidity: f32
§temperature: f32
Auto Trait Implementations§
impl Freeze for SensorReading
impl RefUnwindSafe for SensorReading
impl Send for SensorReading
impl Sync for SensorReading
impl Unpin for SensorReading
impl UnwindSafe for SensorReading
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