#[repr(u8)]pub enum ModeControlFlight {
None = 0,
Attitude = 16,
Position = 17,
Manual = 18,
Rate = 19,
Function = 20,
Error = 160,
}Variants§
Implementations§
Source§impl ModeControlFlight
impl ModeControlFlight
pub fn from_u8(data_u8: u8) -> ModeControlFlight
Trait Implementations§
Source§impl Clone for ModeControlFlight
impl Clone for ModeControlFlight
Source§fn clone(&self) -> ModeControlFlight
fn clone(&self) -> ModeControlFlight
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModeControlFlight
impl Debug for ModeControlFlight
Source§impl From<ModeControlFlight> for u8
impl From<ModeControlFlight> for u8
Source§fn from(enum_value: ModeControlFlight) -> Self
fn from(enum_value: ModeControlFlight) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModeControlFlight
impl PartialEq for ModeControlFlight
Source§impl TryFrom<u8> for ModeControlFlight
impl TryFrom<u8> for ModeControlFlight
Source§type Error = TryFromPrimitiveError<ModeControlFlight>
type Error = TryFromPrimitiveError<ModeControlFlight>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ModeControlFlight
impl TryFromPrimitive for ModeControlFlight
impl Copy for ModeControlFlight
impl Eq for ModeControlFlight
impl StructuralPartialEq for ModeControlFlight
Auto Trait Implementations§
impl Freeze for ModeControlFlight
impl RefUnwindSafe for ModeControlFlight
impl Send for ModeControlFlight
impl Sync for ModeControlFlight
impl Unpin for ModeControlFlight
impl UnwindSafe for ModeControlFlight
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