Commit cc22355
committed
h3i: add interactive mode to async client
Add H3iHandle and connect_interactive() to allow submitting actions
one at a time via a channel, rather than providing all actions upfront.
Changes:
- Add H3iHandle struct with do_action() and finish() methods
- Add connect_interactive() function that returns an H3iHandle
- Refactor H3iDriver to use VecDeque action queue instead of Vec+index
- Add action_rx channel for receiving actions in interactive mode
- Move action processing from iterator-based to queue-based approach
- Process incoming actions in work_loop via select! macro
This enables use cases where actions need to be submitted dynamically
based on server responses, rather than predetermined at connection time.1 parent aecfd90 commit cc22355
2 files changed
+259
-82
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
0 commit comments