Enum e_drone::system::ModelNumber[][src]

#[repr(u32)]pub enum ModelNumber {
    None,
    Drone3DroneP1,
    Drone3DroneP2,
    Drone3DroneP3,
    Drone3DroneP4,
    Drone3DroneP5,
    Drone3DroneP6,
    Drone3DroneP7,
    Drone3DroneP8,
    Drone3DroneP9,
    Drone3DroneP10,
    Drone3ControllerP1,
    Drone3ControllerP2,
    Drone3ControllerP3,
    Drone3ControllerP4,
    Drone3ControllerP5,
    Drone3LinkP0,
    Drone3TesterP4,
    Drone3TesterP6,
    Drone3TesterP7,
    Drone4DroneP5,
    Drone4DroneP6,
    Drone4DroneP7,
    Drone4ControllerP1,
    Drone4ControllerP2,
    Drone4ControllerP3,
    Drone4ControllerP4,
    Drone4LinkP0,
    Drone4TesterP6,
    Drone4TesterP7,
    Drone7DroneP2,
    Drone7BleClientP0,
    Drone7BleClientP5,
    Drone7BleServerP2,
    Drone7TesterP5,
    Drone7TesterP6,
    Drone7MonitorP4,
    Drone7MonitorP5,
    Drone8DroneP0,
    Drone8DroneP1,
    Drone8TesterP6,
    Drone8MonitorP6,
    Drone9DroneP0,
    Drone9DroneP1,
    Drone9DroneP2,
    Drone9TesterP6,
}

Variants

None
Drone3DroneP1
Drone3DroneP2
Drone3DroneP3
Drone3DroneP4
Drone3DroneP5
Drone3DroneP6
Drone3DroneP7
Drone3DroneP8
Drone3DroneP9
Drone3DroneP10
Drone3ControllerP1
Drone3ControllerP2
Drone3ControllerP3
Drone3ControllerP4
Drone3ControllerP5
Drone3LinkP0
Drone3TesterP4
Drone3TesterP6
Drone3TesterP7
Drone4DroneP5
Drone4DroneP6
Drone4DroneP7
Drone4ControllerP1
Drone4ControllerP2
Drone4ControllerP3
Drone4ControllerP4
Drone4LinkP0
Drone4TesterP6
Drone4TesterP7
Drone7DroneP2
Drone7BleClientP0
Drone7BleClientP5
Drone7BleServerP2
Drone7TesterP5
Drone7TesterP6
Drone7MonitorP4
Drone7MonitorP5
Drone8DroneP0
Drone8DroneP1
Drone8TesterP6
Drone8MonitorP6
Drone9DroneP0
Drone9DroneP1
Drone9DroneP2
Drone9TesterP6

Implementations

impl ModelNumber[src]

pub fn from_u32(data_u32: u32) -> ModelNumber[src]

pub fn to_array(&self) -> [u8; 4][src]

pub fn get_device_type(&self) -> DeviceType[src]

Trait Implementations

impl Clone for ModelNumber[src]

impl Copy for ModelNumber[src]

impl Debug for ModelNumber[src]

impl Eq for ModelNumber[src]

impl PartialEq<ModelNumber> for ModelNumber[src]

impl StructuralEq for ModelNumber[src]

impl StructuralPartialEq for ModelNumber[src]

impl TryFrom<u32> for ModelNumber[src]

type Error = TryFromPrimitiveError<Self>

The type returned in the event of a conversion error.

impl TryFromPrimitive for ModelNumber[src]

type Primitive = u32

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.