pub struct SensorSnapshot {
pub temperatures: MetricState<Vec<TemperatureReading>>,
pub battery: MetricState<BatterySnapshot>,
}Expand description
All sensor readings.
Fields§
§temperatures: MetricState<Vec<TemperatureReading>>Temperature sensors.
battery: MetricState<BatterySnapshot>Battery, on systems that have one.
Implementations§
Source§impl SensorSnapshot
impl SensorSnapshot
Sourcepub const fn warming_up() -> Self
pub const fn warming_up() -> Self
A snapshot with nothing measured yet.
Sourcepub fn hottest(&self) -> Option<&TemperatureReading>
pub fn hottest(&self) -> Option<&TemperatureReading>
The hottest reading, for the compact overview summary (§7.1).
Trait Implementations§
Source§impl Clone for SensorSnapshot
impl Clone for SensorSnapshot
Source§fn clone(&self) -> SensorSnapshot
fn clone(&self) -> SensorSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SensorSnapshot
impl Debug for SensorSnapshot
Source§impl PartialEq for SensorSnapshot
impl PartialEq for SensorSnapshot
impl StructuralPartialEq for SensorSnapshot
Auto Trait Implementations§
impl Freeze for SensorSnapshot
impl RefUnwindSafe for SensorSnapshot
impl Send for SensorSnapshot
impl Sync for SensorSnapshot
impl Unpin for SensorSnapshot
impl UnsafeUnpin for SensorSnapshot
impl UnwindSafe for SensorSnapshot
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