#[non_exhaustive]pub enum MotorWarningKind {
FailedCheck,
LightPropellant,
HeavyLoadedMass,
LightLoadedMass,
BurnoutMass,
PropellantShare,
}Expand description
What a warning for flying a catalog motor’s file is about
(CatalogMotor::flight_warning_kinds).
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.
FailedCheck
The file’s total impulse, average thrust or burn time is more than 1% from the record’s
(CatalogMotor::check_warning).
LightPropellant
The propellant mass flown is more than PROPELLANT_SHORT_BOUND below the record’s
(CatalogMotor::propellant_warning).
HeavyLoadedMass
The loaded mass flown is more than LOADED_MASS_BOUND above the record’s.
LightLoadedMass
The loaded mass flown is more than LOADED_MASS_BOUND below the record’s.
BurnoutMass
With the loaded mass within its bound, the burnout mass is more than
BURNOUT_MASS_BOUND from the record’s, either way.
The propellant’s share of the loaded mass is outside PROPELLANT_SHARE_SPAN.
Trait Implementations§
Source§impl Clone for MotorWarningKind
impl Clone for MotorWarningKind
Source§fn clone(&self) -> MotorWarningKind
fn clone(&self) -> MotorWarningKind
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 MotorWarningKind
Source§impl Debug for MotorWarningKind
impl Debug for MotorWarningKind
Source§impl<'de> Deserialize<'de> for MotorWarningKind
impl<'de> Deserialize<'de> for MotorWarningKind
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
impl Eq for MotorWarningKind
Source§impl Hash for MotorWarningKind
impl Hash for MotorWarningKind
Source§impl PartialEq for MotorWarningKind
impl PartialEq for MotorWarningKind
Source§fn eq(&self, other: &MotorWarningKind) -> bool
fn eq(&self, other: &MotorWarningKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MotorWarningKind
impl Serialize for MotorWarningKind
impl StructuralPartialEq for MotorWarningKind
Auto Trait Implementations§
impl Freeze for MotorWarningKind
impl RefUnwindSafe for MotorWarningKind
impl Send for MotorWarningKind
impl Sync for MotorWarningKind
impl Unpin for MotorWarningKind
impl UnsafeUnpin for MotorWarningKind
impl UnwindSafe for MotorWarningKind
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