Available on crate features
tokio-rtu-sync or tokio-tcp-sync or tokio-rtu or tokio-tcp only.Expand description
This module provides common data structures and error types for the tokio
based clients.
It defines the Error enum, which encapsulates all possible communication errors.
Enums§
- Error
- Represents all possible errors that can occur during Modbus communication.
Constants§
- DATA_
BITS - The number of data bits used for serial communication.
- PARITY
- The parity used for serial communication.
- STOP_
BITS - The number of stop bits used for serial communication.
Functions§
- serial_
port_ builder - Creates and configures a
tokio_serial::SerialPortBuilderfor RTU communication.