@flux-control/effect-modbus-rs
    Preparing search index...

    Type Alias ConnectionState

    ConnectionState: Data.TaggedEnum<
        {
            Connected: object;
            Disconnected: object;
            Down: { cause: ModbusError };
            Reconnecting: { attempt: number };
        },
    >

    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 out resetAfter before probing again. Operations are refused.