Struct dynamixel2::Response
source · pub struct Response<T> {
pub motor_id: u8,
pub alert: bool,
pub data: T,
}Expand description
A response from a motor.
Fields§
§motor_id: u8The motor that sent the response.
alert: boolThe alert bit from the response message.
If this bit is set, you can normally check the “Hardware Error” register for more details. Consult the manual of your motor for more information.
data: TThe data from the motor.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnwindSafe for Response<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