Struct dynamixel2::instructions::PingResponse
source · pub struct PingResponse {
pub motor_id: u8,
pub model: u16,
pub firmware: u8,
pub alert: bool,
}
Expand description
A response from a motor to a ping instruction.
Fields§
§motor_id: u8
The ID of the motor.
model: u16
The model of the motor.
Refer to the online manual to find the codes for each model.
firmware: u8
The firmware version of the motor.
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.
Trait Implementations§
source§impl Clone for PingResponse
impl Clone for PingResponse
source§fn clone(&self) -> PingResponse
fn clone(&self) -> PingResponse
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 Debug for PingResponse
impl Debug for PingResponse
source§impl PartialEq for PingResponse
impl PartialEq for PingResponse
source§fn eq(&self, other: &PingResponse) -> bool
fn eq(&self, other: &PingResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PingResponse
impl StructuralPartialEq for PingResponse
Auto Trait Implementations§
impl Freeze for PingResponse
impl RefUnwindSafe for PingResponse
impl Send for PingResponse
impl Sync for PingResponse
impl Unpin for PingResponse
impl UnwindSafe for PingResponse
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