Skip to main content

Module app

Module app 

Source
Expand description

Application-level traits and callback definitions. Users implement these to handle data returned by the Modbus server. These modules are conditionally compiled based on features. Modbus Application Layer Module

This module provides the high-level abstractions and traits required for application-level interaction with the Modbus protocol.

It defines:

  • Response handling traits ([CoilResponse], [RegisterResponse], etc.) that allow users to define custom logic for processing server responses.
  • Error notification mechanisms ([RequestErrorNotifier]).
  • Re-exports of core data structures used by the application layer for convenient access.

Traitsยง

CoilResponse
Trait defining the expected response handling for coil-related Modbus operations.
DiagnosticsResponse
Trait for handling Diagnostics-family responses.
DiscreteInputResponse
Defines callbacks for handling responses to Modbus discrete input-related requests.
FifoQueueResponse
Trait defining the expected response handling for FIFO Queue Modbus operations.
FileRecordResponse
Trait defining the expected response handling for File Record Modbus operations.
RegisterResponse
Defines callbacks for handling responses to Modbus register-related requests.
RequestErrorNotifier
Trait for receiving notifications about failed Modbus requests.