#[non_exhaustive]pub enum ValidationWarning {
Show 13 variants
Co2TooLow {
value: u16,
min: u16,
},
Co2TooHigh {
value: u16,
max: u16,
},
TemperatureTooLow {
value: f32,
min: f32,
},
TemperatureTooHigh {
value: f32,
max: f32,
},
PressureTooLow {
value: f32,
min: f32,
},
PressureTooHigh {
value: f32,
max: f32,
},
HumidityOutOfRange {
value: u8,
},
BatteryOutOfRange {
value: u8,
},
Co2Zero,
AllZeros,
RadonTooHigh {
value: u32,
max: u32,
},
RadiationRateTooHigh {
value: f32,
max: f32,
},
RadiationTotalTooHigh {
value: f64,
max: f64,
},
}Expand description
Warning types for validation issues.
This enum is marked #[non_exhaustive] to allow adding new warning types
in future versions without breaking downstream code.
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.
Co2TooLow
CO2 reading is below minimum expected value.
Co2TooHigh
CO2 reading is above maximum expected value.
TemperatureTooLow
Temperature is below minimum expected value.
TemperatureTooHigh
Temperature is above maximum expected value.
PressureTooLow
Pressure is below minimum expected value.
PressureTooHigh
Pressure is above maximum expected value.
HumidityOutOfRange
Humidity is above 100%.
BatteryOutOfRange
Battery level is above 100%.
Co2Zero
CO2 is zero which may indicate sensor error.
AllZeros
All values are zero which may indicate communication error.
RadonTooHigh
Radon reading is above maximum expected value.
RadiationRateTooHigh
Radiation rate is above maximum expected value.
RadiationTotalTooHigh
Radiation total is above maximum expected value.
Trait Implementations§
Source§impl Clone for ValidationWarning
impl Clone for ValidationWarning
Source§fn clone(&self) -> ValidationWarning
fn clone(&self) -> ValidationWarning
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidationWarning
impl Debug for ValidationWarning
Source§impl<'de> Deserialize<'de> for ValidationWarning
impl<'de> Deserialize<'de> for ValidationWarning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ValidationWarning
impl Display for ValidationWarning
Source§impl PartialEq for ValidationWarning
impl PartialEq for ValidationWarning
Source§impl Serialize for ValidationWarning
impl Serialize for ValidationWarning
impl StructuralPartialEq for ValidationWarning
Auto Trait Implementations§
impl Freeze for ValidationWarning
impl RefUnwindSafe for ValidationWarning
impl Send for ValidationWarning
impl Sync for ValidationWarning
impl Unpin for ValidationWarning
impl UnwindSafe for ValidationWarning
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