[][src]Enum libmodbus::Exception

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 Clone for Exception[src]

impl Copy for Exception[src]

impl Debug for Exception[src]

impl Eq for Exception[src]

impl Hash for Exception[src]

impl PartialEq<Exception> for Exception[src]

impl StructuralEq for Exception[src]

impl StructuralPartialEq for Exception[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,