pub struct PressureSnapshot {
pub signals: Vec<PressureSignal>,
pub psi: MetricState<PsiSnapshot>,
}Expand description
The whole radar.
Fields§
§signals: Vec<PressureSignal>Signals in PressureId::DISPLAY_ORDER.
psi: MetricState<PsiSnapshot>Raw PSI figures, Linux only.
Implementations§
Source§impl PressureSnapshot
impl PressureSnapshot
Sourcepub fn signal(&self, id: PressureId) -> Option<&PressureSignal>
pub fn signal(&self, id: PressureId) -> Option<&PressureSignal>
Looks up one signal.
Sourcepub fn worst_state(&self) -> MetricState<PressureState>
pub fn worst_state(&self) -> MetricState<PressureState>
The most severe state any signal reports.
Unavailable signals are skipped rather than counted as normal, so a system whose pressure cannot be measured does not read as healthy.
Sourcepub fn warming_up() -> Self
pub fn warming_up() -> Self
A radar with every signal warming up, for the first frame.
Trait Implementations§
Source§impl Clone for PressureSnapshot
impl Clone for PressureSnapshot
Source§fn clone(&self) -> PressureSnapshot
fn clone(&self) -> PressureSnapshot
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 PressureSnapshot
impl Debug for PressureSnapshot
Source§impl PartialEq for PressureSnapshot
impl PartialEq for PressureSnapshot
impl StructuralPartialEq for PressureSnapshot
Auto Trait Implementations§
impl Freeze for PressureSnapshot
impl RefUnwindSafe for PressureSnapshot
impl Send for PressureSnapshot
impl Sync for PressureSnapshot
impl Unpin for PressureSnapshot
impl UnsafeUnpin for PressureSnapshot
impl UnwindSafe for PressureSnapshot
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