Struct dynamixel2::instructions::SyncWriteData
source · pub struct SyncWriteData<T> {
pub motor_id: u8,
pub data: T,
}
Expand description
Data from or for a specific motor.
Used by synchronous write commands.
Fields§
§motor_id: u8
The ID of the motor.
data: T
The data to be written to the motor.
Trait Implementations§
source§impl<T> AsRef<SyncWriteData<T>> for SyncWriteData<T>
impl<T> AsRef<SyncWriteData<T>> for SyncWriteData<T>
source§impl<T: Clone> Clone for SyncWriteData<T>
impl<T: Clone> Clone for SyncWriteData<T>
source§fn clone(&self) -> SyncWriteData<T>
fn clone(&self) -> SyncWriteData<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for SyncWriteData<T>
impl<T: Debug> Debug for SyncWriteData<T>
source§impl<T: PartialEq> PartialEq for SyncWriteData<T>
impl<T: PartialEq> PartialEq for SyncWriteData<T>
source§fn eq(&self, other: &SyncWriteData<T>) -> bool
fn eq(&self, other: &SyncWriteData<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for SyncWriteData<T>
impl<T> StructuralPartialEq for SyncWriteData<T>
Auto Trait Implementations§
impl<T> Freeze for SyncWriteData<T>where
T: Freeze,
impl<T> RefUnwindSafe for SyncWriteData<T>where
T: RefUnwindSafe,
impl<T> Send for SyncWriteData<T>where
T: Send,
impl<T> Sync for SyncWriteData<T>where
T: Sync,
impl<T> Unpin for SyncWriteData<T>where
T: Unpin,
impl<T> UnwindSafe for SyncWriteData<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more