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

(1) Illegal Function - Function code received in the query is not recognized or allowed by slave

(2) Illegal Data Address - Data address of some or all the required entities are not allowed or do not exist in slave

(3) Illegal Data Value - Value is not accepted by slave

(4) Slave Device Failure - Unrecoverable error occurred while slave was attempting to perform requested action

(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

(6) Slave Device Busy - Slave is engaged in processing a long-duration command. Master should retry later

(7) Negative Acknowledge - Slave cannot perform the programming functions. Master should request diagnostic or error information from slave

(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

(9) Not defined

(10) Gateway Path Unavailable - Specialized for Modbus gateways. Indicates a misconfigured gateway

(11) Gateway Target Device Failed to Respond - Specialized for Modbus gateways. Sent when slave fails to respond

Trait Implementations

impl Debug for Exception
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Exception
[src]

impl Clone for Exception
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Exception
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Exception
[src]

impl Hash for Exception
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more