#[non_exhaustive]pub enum SensorHealth {
Healthy,
Suspect,
}Expand description
Health of one observation source, as judged by its consumer.
Judged by content, not by presence: detecting silence is the intake’s job, since only it knows the expected rate.
#[non_exhaustive]; match with a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Healthy
Observations accepted.
Suspect
Several consecutive observations rejected. Either the source is faulty or the estimate has drifted and this source is right; the consumer cannot tell which, and the operator should check.
Trait Implementations§
Source§impl Clone for SensorHealth
impl Clone for SensorHealth
impl Copy for SensorHealth
Source§impl Debug for SensorHealth
impl Debug for SensorHealth
impl Eq for SensorHealth
Source§impl Hash for SensorHealth
impl Hash for SensorHealth
Source§impl PartialEq for SensorHealth
impl PartialEq for SensorHealth
impl StructuralPartialEq for SensorHealth
Auto Trait Implementations§
impl Freeze for SensorHealth
impl RefUnwindSafe for SensorHealth
impl Send for SensorHealth
impl Sync for SensorHealth
impl Unpin for SensorHealth
impl UnsafeUnpin for SensorHealth
impl UnwindSafe for SensorHealth
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