page1
state_store’s main_loop has 3 parameters:
- terminator
- action_rx
- interrupt_rx
ui_manager imports state_store crate
state_store
ui_manager
ui_manager’s main_loop requires the variables:
- state_rx
- interrupt_rx
The main() function passes the variables:
Terminator, interrupt_rx, state_rx, action_rx
to state_store and ui_manager
main.rs
state_store receives UI actions from action_rx.recv()
ui_manager receives state changes from state_rx.recv(), passes it to the AppRouter
state_store sends initial state via state_tx
ui_manager handles state updates through state_rx.recv()
state_tx
state_tx
action_tx