Enum libmodbus_rs::errors::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Fmt(Error), Io(Error), IllegalFunction, IllegalDataAddress, IllegalDataValue, SlaveDeviceOrServerFailure, Acknowledge, SlaveDeviceOrServerIsBusy, NegativeAcknowledge, MemoryParityError, GatewayPathUnavailable, TargetDeviceFailedToRespond, InvalidCRC, InvalidData, InvalidExceptionCode, TooManyData, ResponseNotFromRequestedSlave, BADSLAVE, IncompatibleAPI, InvalidSlaveID(u8), InvalidParameter(&'static str), UnitTestClientFailure, // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Fmt(Error)
Io(Error)
IllegalFunction
IllegalDataAddress
IllegalDataValue
SlaveDeviceOrServerFailure
Acknowledge
SlaveDeviceOrServerIsBusy
NegativeAcknowledge
MemoryParityError
TargetDeviceFailedToRespond
InvalidCRC
InvalidData
InvalidExceptionCode
TooManyData
ResponseNotFromRequestedSlave
BADSLAVE
IncompatibleAPI
InvalidSlaveID(u8)
InvalidParameter(&'static str)
UnitTestClientFailure
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.