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)
InvalidChecksum(InvalidChecksum)
InvalidPacketId(InvalidPacketId)
InvalidInstruction(InvalidInstruction)
InvalidParameterCount(InvalidParameterCount)
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)>
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<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.