Enum dynamixel2::ReadError
source · pub enum ReadError {
BufferFull(BufferTooSmallError),
Io(Error),
InvalidMessage(InvalidMessage),
MotorError(MotorError),
}
Expand description
An error that can occur during a read transfer.
Variants§
BufferFull(BufferTooSmallError)
The read buffer is too small to contain the whole stuffed message.
Io(Error)
Failed to read from the serial port.
InvalidMessage(InvalidMessage)
The received message is invalid.
MotorError(MotorError)
The motor reported an error instead of a valid response.
This error is not returned when a motor signals a hardware error, since the instruction has still been exectuted.
Instead, the alert
bit in the response will be set.
Trait Implementations§
source§impl Error for ReadError
impl Error for ReadError
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 ReadError
impl From<InvalidChecksum> for ReadError
source§fn from(other: InvalidChecksum) -> Self
fn from(other: InvalidChecksum) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderPrefix> for ReadError
impl From<InvalidHeaderPrefix> for ReadError
source§fn from(other: InvalidHeaderPrefix) -> Self
fn from(other: InvalidHeaderPrefix) -> 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<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 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<InvalidParameterCount> for ReadError
impl From<InvalidParameterCount> for ReadError
source§fn from(other: InvalidParameterCount) -> Self
fn from(other: InvalidParameterCount) -> Self
Converts to this type from the input type.
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.
Auto Trait Implementations§
impl Freeze for ReadError
impl !RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl !UnwindSafe for ReadError
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