Expand description
Modbus function code dispatch table: routes PDU requests to typed handlers. Modbus function code dispatch table.
Provides a registry of handlers for each Modbus function code, dispatching incoming PDU requests to the correct handler and returning PDU responses.
Structs§
- Dispatch
Table - A mapping from function code bytes to boxed
FunctionCodeHandlers. - Echo
Handler - A simple handler that echoes the request data back as the response data. Useful for testing and as a default placeholder.
- Function
Code Request - A raw Modbus function code request PDU (function code byte + data bytes).
- Function
Code Response - A raw Modbus function code response PDU.
Enums§
- Function
Code - The nine standard Modbus function codes supported by this implementation.
Traits§
- Function
Code Handler - Trait for objects that can handle a specific Modbus function code.