Module diagnostics

Source
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§

AdapterInfo
Information about the Bluetooth adapter.
BluetoothDiagnostics
Complete Bluetooth diagnostics snapshot.
ConnectionStats
Statistics about connection operations.
DiagnosticsCollector
Collector for Bluetooth diagnostics.
OperationStats
Statistics about read/write operations.
PlatformConfigSnapshot
Serializable snapshot of platform configuration.
RecordedError
A recorded error with timestamp.

Enums§

AdapterState
Bluetooth adapter state.
ErrorCategory
Categories of errors for classification.

Statics§

GLOBAL_DIAGNOSTICS
Global diagnostics collector instance.

Functions§

global_diagnostics
Get a reference to the global diagnostics collector.