Expand description
Message types for UI/worker communication.
This module defines the command and event enums used for bidirectional communication between UI threads and background BLE workers. These types are shared between TUI and GUI applications.
§Architecture
+------------------+ Command +------------------+
| UI Thread | --------------> | SensorWorker |
| (egui/ratatui) | | (tokio runtime) |
| | <-------------- | |
+------------------+ SensorEvent +------------------+Command: Messages sent from the UI thread to the background workerSensorEvent: Events sent from the worker back to the UI thread
Structs§
- Cached
Device - Cached device data loaded from the store.
- Error
Context - Describes why an error occurred and whether it can be retried.
- Service
Device Stats - Statistics for a device being monitored by the service.
- Service
Monitored Device - A device being monitored by the service.
Enums§
- Command
- Commands sent from the UI thread to the background worker.
- Sensor
Event - Events sent from the background worker to the UI thread.
- Signal
Quality - Signal quality assessment based on RSSI.