Struct dynamixel2::instructions::BulkWriteData
source · pub struct BulkWriteData<T> {
pub motor_id: u8,
pub address: u16,
pub data: T,
}
Expand description
Bulk data for a specific motor.
This struct is similar to SyncWriteData
,
but it supports reads and writes of different sizes and to different addresses for each motor.
Used by bulk write commands.
Fields§
§motor_id: u8
The ID of the motor.
address: u16
The address for the read or write.
data: T
The data read from or to be written to the motor.
Trait Implementations§
source§impl<T> AsRef<BulkWriteData<T>> for BulkWriteData<T>
impl<T> AsRef<BulkWriteData<T>> for BulkWriteData<T>
source§impl<T: Clone> Clone for BulkWriteData<T>
impl<T: Clone> Clone for BulkWriteData<T>
source§fn clone(&self) -> BulkWriteData<T>
fn clone(&self) -> BulkWriteData<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 BulkWriteData<T>
impl<T: Debug> Debug for BulkWriteData<T>
source§impl<T: PartialEq> PartialEq for BulkWriteData<T>
impl<T: PartialEq> PartialEq for BulkWriteData<T>
source§fn eq(&self, other: &BulkWriteData<T>) -> bool
fn eq(&self, other: &BulkWriteData<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for BulkWriteData<T>
impl<T> StructuralPartialEq for BulkWriteData<T>
Auto Trait Implementations§
impl<T> Freeze for BulkWriteData<T>where
T: Freeze,
impl<T> RefUnwindSafe for BulkWriteData<T>where
T: RefUnwindSafe,
impl<T> Send for BulkWriteData<T>where
T: Send,
impl<T> Sync for BulkWriteData<T>where
T: Sync,
impl<T> Unpin for BulkWriteData<T>where
T: Unpin,
impl<T> UnwindSafe for BulkWriteData<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