Enum libmodbus_rs::Exception
[−]
[src]
pub enum Exception { IllegalFunction, IllegalDataAddress, IllegalDataValue, SlaveOrServerFailure, Acknowledge, SlaveDeviceBusy, NegativeAcknowledge, MemoryParity, NotDefined, GatewayPath, GatewayTarget, }
Modbus protocol exceptions
Documentation source: https://en.wikipedia.org/wiki/Modbus#Main_Modbus_exception_codes
Variants
IllegalFunction
(1) Illegal Function - Function code received in the query is not recognized or allowed by slave
IllegalDataAddress
(2) Illegal Data Address - Data address of some or all the required entities are not allowed or do not exist in slave
IllegalDataValue
(3) Illegal Data Value - Value is not accepted by slave
SlaveOrServerFailure
(4) Slave Device Failure - Unrecoverable error occurred while slave was attempting to perform requested action
Acknowledge
(5) Acknowledge - Slave has accepted request and is processing it, but a long duration of time is required. This response is returned to prevent a timeout error from occurring in the master. Master can next issue a Poll Program Complete message to determine whether processing is completed
SlaveDeviceBusy
(6) Slave Device Busy - Slave is engaged in processing a long-duration command. Master should retry later
NegativeAcknowledge
(7) Negative Acknowledge - Slave cannot perform the programming functions. Master should request diagnostic or error information from slave
MemoryParity
(8) Memory Parity Error - Slave detected a parity error in memory. Master can retry the request, but service may be required on the slave device
NotDefined
(9) Not defined
GatewayPath
(10) Gateway Path Unavailable - Specialized for Modbus gateways. Indicates a misconfigured gateway
GatewayTarget
(11) Gateway Target Device Failed to Respond - Specialized for Modbus gateways. Sent when slave fails to respond
Trait Implementations
impl Debug for Exception
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for Exception
[src]
impl Clone for Exception
[src]
fn clone(&self) -> Exception
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Exception
[src]
fn eq(&self, __arg_0: &Exception) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.