Struct aht20_driver::SensorReading
source · pub struct SensorReading {
pub humidity: f32,
pub temperature: f32,
}
Expand description
SensorReading is a single reading from the AHT20 sensor.
This is returned from the measure
method. You get:
- humidity in % Relative Humidity
- temperature in degrees Celsius.
Fields§
§humidity: f32
§temperature: f32
Trait Implementations§
source§impl Clone for SensorReading
impl Clone for SensorReading
source§fn clone(&self) -> SensorReading
fn clone(&self) -> SensorReading
Returns a copy 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 SensorReading
impl Debug for SensorReading
impl Copy for SensorReading
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