Function modbus_robust::new_sync
source · pub fn new_sync<T: Client + 'static, F: FnMut(Slave) -> Result<T, Error> + Send + Sync + 'static>(
factory: F,
slave: Slave
) -> Context
Expand description
Construct a tokio_modbus::client::Context
from a connection factory
function.
The connection is not immediately established. It will be attempted on the first call.