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.
Note that the Eq
and PartialEq
compare all fields of the struct,
including the motor_id
and alert
.
Fields§
§motor_id: u8
The motor that sent the response.
alert: bool
The 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: T
The data from the motor.
Trait Implementations§
source§impl<T: PartialEq> PartialEq for Response<T>
impl<T: PartialEq> PartialEq for Response<T>
impl<T: Eq> Eq for Response<T>
impl<T> StructuralPartialEq for Response<T>
Auto Trait Implementations§
impl<T> Freeze for Response<T>where
T: Freeze,
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