Expand description
Bluetooth diagnostics and troubleshooting utilities.
This module provides tools for diagnosing Bluetooth connectivity issues and gathering information about the BLE environment.
§Example
ⓘ
use aranet_core::diagnostics::{BluetoothDiagnostics, DiagnosticsCollector};
let collector = DiagnosticsCollector::new();
let diagnostics = collector.collect().await?;
println!("Platform: {:?}", diagnostics.platform);
println!("Adapter: {:?}", diagnostics.adapter_info);
println!("Connection stats: {:?}", diagnostics.connection_stats);Structs§
- Adapter
Info - Information about the Bluetooth adapter.
- Bluetooth
Diagnostics - Complete Bluetooth diagnostics snapshot.
- Connection
Stats - Statistics about connection operations.
- Diagnostics
Collector - Collector for Bluetooth diagnostics.
- Operation
Stats - Statistics about read/write operations.
- Platform
Config Snapshot - Serializable snapshot of platform configuration.
- Recorded
Error - A recorded error with timestamp.
Enums§
- Adapter
State - Bluetooth adapter state.
- Error
Category - Categories of errors for classification.
Statics§
- GLOBAL_
DIAGNOSTICS - Global diagnostics collector instance.
Functions§
- global_
diagnostics - Get a reference to the global diagnostics collector.