Module messages

Source
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 worker
  • SensorEvent: Events sent from the worker back to the UI thread

Structs§

CachedDevice
Cached device data loaded from the store.

Enums§

Command
Commands sent from the UI thread to the background worker.
SensorEvent
Events sent from the background worker to the UI thread.