#[non_exhaustive]pub enum AtmosphereErrorReason {
NotFinite,
HumidityPercentOutOfRange,
HumidityFractionOutOfRange,
AtOrBelowAbsoluteZero,
NonPositivePressure,
ImpossibleAir,
DensityRatioOutOfRange,
UniformDensityOutOfRange,
UniformSpeedOfSoundOutOfRange,
NonPositiveZoneThreshold,
AirAloftBelowAbsoluteZero,
NoAirAtDensityAltitude,
}Expand description
Why an atmosphere value was refused. Carried by AtmosphereError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotFinite
The value is NaN or infinite.
HumidityPercentOutOfRange
A relative humidity percent outside [0, 100] by more than the sensor band,
HUMIDITY_SENSOR_TOLERANCE_PERCENT: below -5 or above 105. It displays the band it
enforces: “relative humidity must be a percent from 0 to 100 (a sensor reading from -5 to
105 is read as 0 or 100)”.
HumidityFractionOutOfRange
A relative humidity fraction outside [0, 1] by more than the sensor band: below -0.05
or above 1.05. It displays the band in fraction units: “relative humidity must be a
fraction from 0 to 1 (0.5 = 50 %; a sensor reading from -0.05 to 1.05 is read as 0 or 1)”.
AtOrBelowAbsoluteZero
A temperature at or below absolute zero, -273.15 °C.
NonPositivePressure
A pressure at or below zero.
ImpossibleAir
Air that cannot exist: the stated humidity needs a water-vapour mole fraction of 1 or
more, that is more vapour pressure than the air’s total pressure; or the air is humid
above water’s critical point (647.096 K), where no saturation vapour pressure, and so no
relative humidity, is defined; or, dry above that point, it is too hot for the CIPM-2007
density to stay finite and positive; or its pressure is so far beyond any air’s (above
about 4e156 Pa) that the density does not either. Dry air at any lower temperature above
absolute zero exists. The same refusal the atmosphere.density_altitude service makes.
DensityRatioOutOfRange
A station density ratio (density / 1.225 kg/m³) outside (0, 2).
UniformDensityOutOfRange
A uniform (direct-mode) air density outside [0, 2) kg/m³ (0 is a vacuum).
UniformSpeedOfSoundOutOfRange
A uniform (direct-mode) speed of sound at or below 200 m/s.
NonPositiveZoneThreshold
A downrange atmosphere zone whose until_distance_m is not above 0.
AirAloftBelowAbsoluteZero
Air that cannot exist aloft: from this station (or downrange zone) temperature the
standard lapse takes the air to absolute zero, at an altitude the flight reaches. Every
trajectory kernel refuses the flight at the step that gets there, with this reason on the
temperature (AtmosphereError::field temperature_c, the governing air’s temperature);
AtmosphereError::altitude_m is where the air reaches 0 K. A flight that stays below
that height flies.
NoAirAtDensityAltitude
A density altitude no air has by the FAA rule its entry inverts
(station_for_density_altitude): at its pressure altitude by that rule
(AtmosphereError::altitude_m) the NWS pressure formula gives no finite pressure above
0 (at or above 145366.45 ft, 44308 m), or, with no temperature given, the rule’s standard
temperature is at or below absolute zero (at or above 145286 ft, 44283 m). On the field
density_altitude_m.
Trait Implementations§
Source§impl Clone for AtmosphereErrorReason
impl Clone for AtmosphereErrorReason
Source§fn clone(&self) -> AtmosphereErrorReason
fn clone(&self) -> AtmosphereErrorReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AtmosphereErrorReason
impl Debug for AtmosphereErrorReason
Source§impl Display for AtmosphereErrorReason
impl Display for AtmosphereErrorReason
Source§impl Hash for AtmosphereErrorReason
impl Hash for AtmosphereErrorReason
Source§impl PartialEq for AtmosphereErrorReason
impl PartialEq for AtmosphereErrorReason
impl Copy for AtmosphereErrorReason
impl Eq for AtmosphereErrorReason
impl StructuralPartialEq for AtmosphereErrorReason
Auto Trait Implementations§
impl Freeze for AtmosphereErrorReason
impl RefUnwindSafe for AtmosphereErrorReason
impl Send for AtmosphereErrorReason
impl Sync for AtmosphereErrorReason
impl Unpin for AtmosphereErrorReason
impl UnwindSafe for AtmosphereErrorReason
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.