Enum robust_arduino_serial::Order
[−]
[src]
pub enum Order { HELLO, SERVO, MOTOR, ALREADY_CONNECTED, ERROR, RECEIVED, STOP, }
Variants
HELLO
SERVO
MOTOR
ALREADY_CONNECTED
ERROR
RECEIVED
STOP
Methods
impl Order
[src]
Shortcut for convert_i8_to_order
Example
use robust_arduino_serial::Order; let order: i8 = 2; // Order::MOTOR has the index 2 in the enum let converted_order = Order::from_i8(order).unwrap(); assert_eq!(converted_order, Order::MOTOR);
Trait Implementations
impl Debug for Order
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Order
[src]
fn eq(&self, __arg_0: &Order) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.