[−][src]Struct toio::proto::MotorAcc
The request to move the cube with acceleration.
Fields
id: u8
The request id to find the corresponding response to this request.
speed: u8
The speed of the cube.
acc: u8
The acceleration of the cube.
rotate_speed: u16
The rotation speed of the cube.
rotate_dir: MotorCubeDir
The rotation direction of the cube.
trans_dir: MotorCubeDir
The translation direction of the cube.
prio: MotorPriority
The priority of translation/rotation speed.
duration: u8
The duration to keep moving the cube in seconds.
Implementations
impl MotorAcc
[src]
pub fn new(
id: u8,
speed: u8,
acc: u8,
rotate_speed: u16,
rotate_dir: MotorCubeDir,
trans_dir: MotorCubeDir,
prio: MotorPriority,
duration: u8
) -> Self
[src]
id: u8,
speed: u8,
acc: u8,
rotate_speed: u16,
rotate_dir: MotorCubeDir,
trans_dir: MotorCubeDir,
prio: MotorPriority,
duration: u8
) -> Self
Constructs a new MotorAcc
.
Trait Implementations
impl Clone for MotorAcc
[src]
impl Debug for MotorAcc
[src]
impl<'de> Deserialize<'de> for MotorAcc
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for MotorAcc
[src]
impl PartialEq<MotorAcc> for MotorAcc
[src]
impl Serialize for MotorAcc
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for MotorAcc
[src]
impl StructuralPartialEq for MotorAcc
[src]
Auto Trait Implementations
impl RefUnwindSafe for MotorAcc
impl Send for MotorAcc
impl Sync for MotorAcc
impl Unpin for MotorAcc
impl UnwindSafe for MotorAcc
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,