[][src]Struct dynamixel2::instructions::SyncReadVec

pub struct SyncReadVec<'a> {
    pub motor_ids: &'a [u8],
    pub address: u16,
    pub length: u16,
}

Perform a sync read, returning the data as Vec.

Fields

motor_ids: &'a [u8]

The motors to read from.

address: u16

The address to read from.

length: u16

The number of bytes to read from each motor.

Implementations

impl<'a> SyncReadVec<'a>[src]

pub fn new(motor_ids: &'a [u8], address: u16, length: u16) -> Self[src]

Create a new SyncReadVec instruction to read data from a list of motors.

Trait Implementations

impl<'a> Debug for SyncReadVec<'a>[src]

impl<'_> Instruction for SyncReadVec<'_>[src]

type Response = (u8, Vec<u8>)

The response type.

Auto Trait Implementations

impl<'a> RefUnwindSafe for SyncReadVec<'a>

impl<'a> Send for SyncReadVec<'a>

impl<'a> Sync for SyncReadVec<'a>

impl<'a> Unpin for SyncReadVec<'a>

impl<'a> UnwindSafe for SyncReadVec<'a>

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, 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.