#[non_exhaustive]pub enum Termination {
GroundHit,
NoLiftoff,
StalledOnRail,
TimeCap,
StepLimit,
Separated,
}Expand description
Why a flight ended (Loft lesson L25: every way of stopping is named).
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.
GroundHit
The center of mass reached the ground.
NoLiftoff
Every motor burned out before the rocket lifted off.
StalledOnRail
The rocket lifted off but stopped on the rail and every motor has burned out.
TimeCap
The time cap was reached.
StepLimit
The integrator’s step limit was reached.
Separated
The stack separated, and each body flew on as its own descent
(FlightResult::bodies).
Trait Implementations§
Source§impl Clone for Termination
impl Clone for Termination
Source§fn clone(&self) -> Termination
fn clone(&self) -> Termination
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 Termination
Source§impl Debug for Termination
impl Debug for Termination
Source§impl<'de> Deserialize<'de> for Termination
impl<'de> Deserialize<'de> for Termination
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 Termination
Source§impl Hash for Termination
impl Hash for Termination
Source§impl PartialEq for Termination
impl PartialEq for Termination
Source§fn eq(&self, other: &Termination) -> bool
fn eq(&self, other: &Termination) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Termination
impl Serialize for Termination
impl StructuralPartialEq for Termination
Auto Trait Implementations§
impl Freeze for Termination
impl RefUnwindSafe for Termination
impl Send for Termination
impl Sync for Termination
impl Unpin for Termination
impl UnsafeUnpin for Termination
impl UnwindSafe for Termination
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