Struct dynamixel2::InvalidInstruction
source · pub struct InvalidInstruction {
pub actual: u8,
pub expected: u8,
}
Expand description
The received message has an invalid or unexpected instruction value.
Fields§
§actual: u8
The actual instruction ID.
expected: u8
The expected instruction id.
Implementations§
Trait Implementations§
source§impl Clone for InvalidInstruction
impl Clone for InvalidInstruction
source§fn clone(&self) -> InvalidInstruction
fn clone(&self) -> InvalidInstruction
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 InvalidInstruction
impl Debug for InvalidInstruction
source§impl Display for InvalidInstruction
impl Display for InvalidInstruction
source§impl Error for InvalidInstruction
impl Error for InvalidInstruction
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<InvalidInstruction> for InvalidMessage
impl From<InvalidInstruction> for InvalidMessage
source§fn from(other: InvalidInstruction) -> Self
fn from(other: InvalidInstruction) -> Self
Converts to this type from the input type.
source§impl From<InvalidInstruction> for ReadError
impl From<InvalidInstruction> for ReadError
source§fn from(other: InvalidInstruction) -> Self
fn from(other: InvalidInstruction) -> Self
Converts to this type from the input type.
source§impl From<InvalidInstruction> for TransferError
impl From<InvalidInstruction> for TransferError
source§fn from(other: InvalidInstruction) -> Self
fn from(other: InvalidInstruction) -> Self
Converts to this type from the input type.
source§impl PartialEq for InvalidInstruction
impl PartialEq for InvalidInstruction
source§fn eq(&self, other: &InvalidInstruction) -> bool
fn eq(&self, other: &InvalidInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InvalidInstruction
impl StructuralPartialEq for InvalidInstruction
Auto Trait Implementations§
impl Freeze for InvalidInstruction
impl RefUnwindSafe for InvalidInstruction
impl Send for InvalidInstruction
impl Sync for InvalidInstruction
impl Unpin for InvalidInstruction
impl UnwindSafe for InvalidInstruction
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