pub async fn get_adapter() -> Result<Adapter>Expand description
Get the first available Bluetooth adapter.
The adapter, and the Bluetooth manager behind it, are created on aranet-core’s
background runtime (thread aranet-ble), so they keep working after the caller’s
tokio runtime shuts down. On macOS the adapter is also created once, shared by
every caller in the process, and replaced if its CoreBluetooth thread stops.