Owned by the transport and published through
TransportServiceApi.connectionState, so an application can show link
status without inferring it from failed reads.
Disconnected — never opened, or closed. Operations open it lazily.
Connected — usable.
Reconnecting — the supervisor is re-establishing the link. Operations are
refused with ModbusCircuitOpenError rather than queued on a dead bus.
Down — reconnect attempts were exhausted; the supervisor is waiting out
resetAfter before probing again. Operations are refused.
Live connection state of a transport.
Owned by the transport and published through TransportServiceApi.connectionState, so an application can show link status without inferring it from failed reads.
Disconnected— never opened, or closed. Operations open it lazily.Connected— usable.Reconnecting— the supervisor is re-establishing the link. Operations are refused with ModbusCircuitOpenError rather than queued on a dead bus.Down— reconnect attempts were exhausted; the supervisor is waiting outresetAfterbefore probing again. Operations are refused.