Enum dynamixel2::InvalidMessage
source · pub enum InvalidMessage {
InvalidHeaderPrefix(InvalidHeaderPrefix),
InvalidChecksum(InvalidChecksum),
InvalidPacketId(InvalidPacketId),
InvalidInstruction(InvalidInstruction),
InvalidParameterCount(InvalidParameterCount),
}
Expand description
The received message is not valid.
Variants§
InvalidHeaderPrefix(InvalidHeaderPrefix)
The header does not start with the proper prefix.
InvalidChecksum(InvalidChecksum)
The message checksum is invalid.
InvalidPacketId(InvalidPacketId)
The message has an invalid packet ID.
InvalidInstruction(InvalidInstruction)
The message has an invalid instruction.
InvalidParameterCount(InvalidParameterCount)
The message has an invalid parameter count.
Trait Implementations§
source§impl Clone for InvalidMessage
impl Clone for InvalidMessage
source§fn clone(&self) -> InvalidMessage
fn clone(&self) -> InvalidMessage
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 InvalidMessage
impl Debug for InvalidMessage
source§impl Display for InvalidMessage
impl Display for InvalidMessage
source§impl Error for InvalidMessage
impl Error for InvalidMessage
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<InvalidChecksum> for InvalidMessage
impl From<InvalidChecksum> for InvalidMessage
source§fn from(other: InvalidChecksum) -> Self
fn from(other: InvalidChecksum) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderPrefix> for InvalidMessage
impl From<InvalidHeaderPrefix> for InvalidMessage
source§fn from(other: InvalidHeaderPrefix) -> Self
fn from(other: InvalidHeaderPrefix) -> Self
Converts to this type from the input type.
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<InvalidMessage> for ReadError
impl From<InvalidMessage> for ReadError
source§fn from(other: InvalidMessage) -> Self
fn from(other: InvalidMessage) -> Self
Converts to this type from the input type.
source§impl From<InvalidMessage> for TransferError
impl From<InvalidMessage> for TransferError
source§fn from(other: InvalidMessage) -> Self
fn from(other: InvalidMessage) -> Self
Converts to this type from the input type.
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<InvalidParameterCount> for InvalidMessage
impl From<InvalidParameterCount> for InvalidMessage
source§fn from(other: InvalidParameterCount) -> Self
fn from(other: InvalidParameterCount) -> Self
Converts to this type from the input type.
source§impl PartialEq for InvalidMessage
impl PartialEq for InvalidMessage
impl Eq for InvalidMessage
impl StructuralPartialEq for InvalidMessage
Auto Trait Implementations§
impl Freeze for InvalidMessage
impl RefUnwindSafe for InvalidMessage
impl Send for InvalidMessage
impl Sync for InvalidMessage
impl Unpin for InvalidMessage
impl UnwindSafe for InvalidMessage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)