[−][src]Enum toio::proto::Motor
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.
Acc(MotorAcc)
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]
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.
fn try_from(v: &[u8]) -> Result<Self>
[src]
impl TryFrom<Motor> for Vec<u8>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(v: Motor) -> Result<Self>
[src]
impl TryFrom<Motor> for (Uuid, Vec<u8>)
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(v: Motor) -> Result<Self>
[src]
impl TryFrom<Vec<u8>> for Motor
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,