pub enum ExceptionCode {
IllegalFunction,
IllegalDataAddress,
IllegalDataValue,
ServerDeviceFailure,
Acknowledge,
ServerDeviceBusy,
NegativeAcknowledge,
MemoryParityError,
GatewayPathUnavailable,
GatewayTargetNoResponse,
Other(u8),
}Expand description
Why a device refused a read, in its own words.
The specification numbers these. A reply of 2 means the register the caller’s map points at is not on this device. “2” does not say that.
Variants§
IllegalFunction
Exception code 1. The function is not supported.
IllegalDataAddress
Exception code 2. The address is not on this device.
IllegalDataValue
Exception code 3. A value in the request is not allowed.
ServerDeviceFailure
Exception code 4. The device failed while handling the request.
Acknowledge
Exception code 5. The device accepted the request and needs time.
ServerDeviceBusy
Exception code 6. The device is busy.
NegativeAcknowledge
Exception code 7. The device refused the request.
MemoryParityError
Exception code 8. A memory parity error.
Exception code 10. A gateway could not path the request.
GatewayTargetNoResponse
Exception code 11. A gateway got no response from the target.
Other(u8)
A code the specification does not name.
Implementations§
Trait Implementations§
Source§impl Clone for ExceptionCode
impl Clone for ExceptionCode
impl Copy for ExceptionCode
Source§impl Debug for ExceptionCode
impl Debug for ExceptionCode
Source§impl Display for ExceptionCode
impl Display for ExceptionCode
impl Eq for ExceptionCode
Source§impl From<u8> for ExceptionCode
Every byte is an exception of some kind: a device that invents one is
reported as itself rather than mistaken for a code with a meaning.
impl From<u8> for ExceptionCode
Every byte is an exception of some kind: a device that invents one is reported as itself rather than mistaken for a code with a meaning.