Struct dynamixel2::MotorError
source · pub struct MotorError {
pub raw: u8,
}
Expand description
An error reported by the motor.
Fields§
§raw: u8
The raw error as returned by the motor.
Implementations§
source§impl MotorError
impl MotorError
sourcepub fn error_number(&self) -> u8
pub fn error_number(&self) -> u8
The error number reported by the motor.
This is the lower 7 bits of the raw error field.
Trait Implementations§
source§impl Clone for MotorError
impl Clone for MotorError
source§fn clone(&self) -> MotorError
fn clone(&self) -> MotorError
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 MotorError
impl Debug for MotorError
source§impl Display for MotorError
impl Display for MotorError
source§impl Error for MotorError
impl Error for MotorError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<MotorError> for ReadError
impl From<MotorError> for ReadError
source§fn from(other: MotorError) -> Self
fn from(other: MotorError) -> Self
Converts to this type from the input type.
source§impl PartialEq for MotorError
impl PartialEq for MotorError
source§fn eq(&self, other: &MotorError) -> bool
fn eq(&self, other: &MotorError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MotorError
impl StructuralPartialEq for MotorError
Auto Trait Implementations§
impl Freeze for MotorError
impl RefUnwindSafe for MotorError
impl Send for MotorError
impl Sync for MotorError
impl Unpin for MotorError
impl UnwindSafe for MotorError
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