#[non_exhaustive]pub enum ModeRefusal {
Unsupported,
OnGround,
BelowMinAltitude,
TransitionTimeout,
RollError,
BelowPlaneMinAltitude,
}Expand description
Why guidance isn’t flying, or stopped moving toward, the requested FlightRegime.
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.
Unsupported
This guidance can’t fly the requested regime (Plane on a copter, Copter on a
plane).
OnGround
The vehicle is on the ground; transitions start only in the air.
BelowMinAltitude
Too low to start a transition safely.
TransitionTimeout
A transition didn’t complete in time and was abandoned.
RollError
A transition rolled too far off its target and was abandoned or cut short.
BelowPlaneMinAltitude
Plane flight sank below its minimum height and fell back to copter flight (a quadchute).
Trait Implementations§
Source§impl Clone for ModeRefusal
impl Clone for ModeRefusal
impl Copy for ModeRefusal
Source§impl Debug for ModeRefusal
impl Debug for ModeRefusal
Source§impl<'de> Deserialize<'de> for ModeRefusal
impl<'de> Deserialize<'de> for ModeRefusal
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 ModeRefusal
Source§impl PartialEq for ModeRefusal
impl PartialEq for ModeRefusal
Source§impl Serialize for ModeRefusal
impl Serialize for ModeRefusal
impl StructuralPartialEq for ModeRefusal
Auto Trait Implementations§
impl Forget for ModeRefusal
impl Freeze for ModeRefusal
impl Move for ModeRefusal
impl RefUnwindSafe for ModeRefusal
impl Send for ModeRefusal
impl Sync for ModeRefusal
impl Unpin for ModeRefusal
impl UnsafeUnpin for ModeRefusal
impl UnwindSafe for ModeRefusal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.