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