#[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
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.