pub enum AppMessage {
Input(KeyChord),
Resize,
Fs(FsEvent),
Search(SearchEvent),
Git(GitEvent),
Lsp(LspServerId, LspEvent),
Pty(PtyEvent),
Agent(AgentEvent),
}Expand description
A message from an off-loop producer to the single owner of application state.
Exhaustive on purpose: adding a producer should break every loop that has not decided what to do about it.
Variants§
Input(KeyChord)
A resolved key chord from the terminal input pump.
Resize
The terminal was resized. Ratatui re-measures on the next draw, so this carries no dimensions — it exists to wake the loop so that draw happens.
Fs(FsEvent)
A result from the filesystem worker: a directory listing, a failure, or a watch notification. The reason the loop can no longer block on the keyboard.
Search(SearchEvent)
A streamed workspace-search update.
Git(GitEvent)
A result from the serialized Git worker.
Lsp(LspServerId, LspEvent)
A language-server event tagged with the session that produced it.
Pty(PtyEvent)
Output or lifecycle state from the PTY worker.
Agent(AgentEvent)
Something the agent produced — streamed text, an edit proposal, a permission request.
The agent worker feeds this channel exactly as the filesystem worker does, so the scripted agent and the real ACP client reach the model through the same function. A fake that took a different path would be testing a route the product never uses.
Trait Implementations§
Source§impl Clone for AppMessage
impl Clone for AppMessage
Source§fn clone(&self) -> AppMessage
fn clone(&self) -> AppMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more