pub struct SensorAcquisition<S: TemperatureScale> {
pub temperature: Temperature<S>,
pub relative_humidity: f32,
}Expand description
Values read from the driver with the given scale.
Fields§
§temperature: Temperature<S>Sensor temperature value.
relative_humidity: f32Relative humidity.
Trait Implementations§
Source§impl<S: Clone + TemperatureScale> Clone for SensorAcquisition<S>
impl<S: Clone + TemperatureScale> Clone for SensorAcquisition<S>
Source§fn clone(&self) -> SensorAcquisition<S>
fn clone(&self) -> SensorAcquisition<S>
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<S: TemperatureScale> Debug for SensorAcquisition<S>
impl<S: TemperatureScale> Debug for SensorAcquisition<S>
impl<S: Copy + TemperatureScale> Copy for SensorAcquisition<S>
Auto Trait Implementations§
impl<S> Freeze for SensorAcquisition<S>
impl<S> RefUnwindSafe for SensorAcquisition<S>where
S: RefUnwindSafe,
impl<S> Send for SensorAcquisition<S>
impl<S> Sync for SensorAcquisition<S>where
S: Sync,
impl<S> Unpin for SensorAcquisition<S>where
S: Unpin,
impl<S> UnwindSafe for SensorAcquisition<S>where
S: UnwindSafe,
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