Gets the current state of the connection pool.
Returns a record with pool size and idle count, or null on failure.
({int size, int idle})? getState() => _backend.poolGetState(_poolId);