Struct aht20_driver::SensorReading
source · [−]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
sourceimpl Clone for SensorReading
impl Clone for SensorReading
sourcefn clone(&self) -> SensorReading
fn clone(&self) -> SensorReading
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SensorReading
impl Debug for SensorReading
impl Copy for SensorReading
Auto Trait Implementations
impl RefUnwindSafe for SensorReading
impl Send for SensorReading
impl Sync for SensorReading
impl Unpin for SensorReading
impl UnwindSafe for SensorReading
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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