[][src]Enum toio::proto::Motor

pub enum Motor {
    Simple(MotorSimple),
    Timed(MotorTimed),
    Target(MotorTarget),
    MultiTarget(MotorMultiTarget),
    Acc(MotorAcc),
    TargetRes(MotorTargetRes),
    MultiTargetRes(MotorTargetRes),
}

Message from/to the motor.

Variants

Simple(MotorSimple)

Simple request.

Timed(MotorTimed)

Request with timeout.

Target(MotorTarget)

Request with target position.

MultiTarget(MotorMultiTarget)

Request with multiple target positions.

Request with acceleration.

TargetRes(MotorTargetRes)

Response to the request with target.

MultiTargetRes(MotorTargetRes)

Response to the request with multiple target.

Implementations

impl Motor[src]

pub fn new_simple(f0: MotorSimple) -> Self[src]

Constructs a new Motor::Simple.

impl Motor[src]

pub fn new_timed(f0: MotorTimed) -> Self[src]

Constructs a new Motor::Timed.

impl Motor[src]

pub fn new_target(f0: MotorTarget) -> Self[src]

Constructs a new Motor::Target.

impl Motor[src]

pub fn new_multi_target(f0: MotorMultiTarget) -> Self[src]

Constructs a new Motor::MultiTarget.

impl Motor[src]

pub fn new_acc(f0: MotorAcc) -> Self[src]

Constructs a new Motor::Acc.

impl Motor[src]

pub fn new_target_res(f0: MotorTargetRes) -> Self[src]

Constructs a new Motor::TargetRes.

impl Motor[src]

pub fn new_multi_target_res(f0: MotorTargetRes) -> Self[src]

Constructs a new Motor::MultiTargetRes.

Trait Implementations

impl Clone for Motor[src]

impl Debug for Motor[src]

impl Eq for Motor[src]

impl PartialEq<Motor> for Motor[src]

impl StructuralEq for Motor[src]

impl StructuralPartialEq for Motor[src]

impl<'_> TryFrom<&'_ [u8]> for Motor[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Motor> for Vec<u8>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Motor> for (Uuid, Vec<u8>)[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Vec<u8>> for Motor[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Motor

impl Send for Motor

impl Sync for Motor

impl Unpin for Motor

impl UnwindSafe for Motor

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.