Enum robust_arduino_serial::Order [] [src]

pub enum Order {
    HELLO,
    SERVO,
    MOTOR,
    ALREADY_CONNECTED,
    ERROR,
    RECEIVED,
    STOP,
}

Variants

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);

[src]

Trait Implementations

impl Debug for Order
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Order
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Copy for Order
[src]

impl Clone for Order
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Order

impl Sync for Order