pub struct SignalReading {
pub state: MetricState<PressureState>,
pub severity: MetricState<Percent>,
pub raw: Option<Measurement>,
pub rule: &'static str,
}Expand description
One signal’s instantaneous evaluation.
Fields§
§state: MetricState<PressureState>The candidate state, or why none could be derived.
severity: MetricState<Percent>Normalized 0..=100 closeness to critical, for bar length and sorting.
raw: Option<Measurement>The raw metric the state was derived from (§2.3).
May be present even when state is unavailable.
rule: &'static strThe human-readable rule that produced state (§2.3).
Trait Implementations§
Source§impl Clone for SignalReading
impl Clone for SignalReading
Source§fn clone(&self) -> SignalReading
fn clone(&self) -> SignalReading
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 moreimpl Copy for SignalReading
Source§impl Debug for SignalReading
impl Debug for SignalReading
Source§impl PartialEq for SignalReading
impl PartialEq for SignalReading
impl StructuralPartialEq for SignalReading
Auto Trait Implementations§
impl Freeze for SignalReading
impl RefUnwindSafe for SignalReading
impl Send for SignalReading
impl Sync for SignalReading
impl Unpin for SignalReading
impl UnsafeUnpin for SignalReading
impl UnwindSafe for SignalReading
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