toConnectionStatusDetail
fun ConnectionState.toConnectionStatusDetail(now: Instant, restartExpected: Boolean = false, isBluetooth: Boolean = false, bluetoothNeedsLocation: Boolean = false): ConnectionStatusDetail(source)
Resolves this state at now.
Parameters
restartExpected
whether the node is applying a change that reboots it, so a drop reads as a restart
isBluetooth
whether the link is Bluetooth, whose failures name a cause the user can act on
bluetoothNeedsLocation
whether a Bluetooth scan here also needs location services, so an unavailable adapter names both