Module tokio_common

Module tokio_common 

Source
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::SerialPortBuilder for RTU communication.