Struct humidity_core::sample::Summary
source · pub struct Summary<SENSOR>where
SENSOR: Sensor,{
pub n: u8,
pub avg: u16,
pub min: u16,
pub max: u16,
pub sensor: SENSOR,
}
Expand description
Summarizes the results of a sampling operation.
Fields§
§n: u8
Number of samples.
avg: u16
Average reading across all samples.
min: u16
Minimum reading across all samples.
max: u16
Maximum reading across all samples.
sensor: SENSOR
Sensor model.
Trait Implementations§
source§impl<S> Deserializable for Summary<S>where
S: Sensor,
impl<S> Deserializable for Summary<S>where
S: Sensor,
fn deserialize(de: &mut Deserializer<'_>) -> Result<Self, Error>
source§impl<SENSOR> PartialEq for Summary<SENSOR>
impl<SENSOR> PartialEq for Summary<SENSOR>
source§impl<S> Serializable for Summary<S>where
S: Sensor,
impl<S> Serializable for Summary<S>where
S: Sensor,
impl<SENSOR> Copy for Summary<SENSOR>
impl<SENSOR> StructuralPartialEq for Summary<SENSOR>where
SENSOR: Sensor,
Auto Trait Implementations§
impl<SENSOR> Freeze for Summary<SENSOR>where
SENSOR: Freeze,
impl<SENSOR> RefUnwindSafe for Summary<SENSOR>where
SENSOR: RefUnwindSafe,
impl<SENSOR> Send for Summary<SENSOR>where
SENSOR: Send,
impl<SENSOR> Sync for Summary<SENSOR>where
SENSOR: Sync,
impl<SENSOR> Unpin for Summary<SENSOR>where
SENSOR: Unpin,
impl<SENSOR> UnwindSafe for Summary<SENSOR>where
SENSOR: 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