Expand description
Entry points and types for serial
Structs§
- Serial
Settings - serial port settings
Enums§
- Data
Bits - Number of bits per character
- Flow
Control - Flow control modes
- Parity
- Parity checking modes
- Port
State - State of the serial port
- Stop
Bits - Number of stop bits
Functions§
- spawn_
master_ serial - Spawn a master task onto the
Tokioruntime. The task runs until the returned handle, and anyAssociationHandlecreated from it, are dropped. - spawn_
outstation_ serial - Spawn an outstation task onto the
Tokioruntime. The task runs until the returned handle is dropped or a serial port error occurs, e.g. a serial port is removed from the OS. It attempts to open the serial port immediately, and fails if it cannot. - spawn_
outstation_ serial_ 2 - Spawns an outstation task onto the
Tokioruntime. The task runs until the returned handle is dropped. It is tolerant to the serial port being unavailable at startup or being removed from the OS. It uses the providedRetryStrategyto determine when to retry the port if the port cannot be opened or fails. - spawn_
outstation_ serial_ fault_ tolerant - This function was added post 1.0 to provide fault tolerance for outstation serial ports.