pub fn new_rtu_slave(
    device: impl Into<String>,
    baud_rate: u32,
    slave: Slave
) -> Context
Expand description

Construct a tokio_modbus::client::Context for an RTU connection.

The connection is not immediately established. It will be attempted on the first call.

This implementation only allows the baud rate to be set, and not other options such as the parity bits. If more control is needed, use new_sync.