pub enum Request {
Open(PathBuf),
CommentsTaken,
Agent(AgentEvent),
Test(TestRun),
Pane(String),
Reply {
id: u32,
author: String,
text: String,
found: Sender<bool>,
},
Suggest {
file: String,
line: usize,
kind: String,
quote: String,
text: String,
author: String,
made: Sender<u32>,
},
Threads(Sender<String>),
TakeThreads(Sender<String>),
Waiting(Sender<String>),
Plan {
path: PathBuf,
reply: Sender<Decision>,
},
Team {
asked: Asked,
reply: Sender<String>,
},
}Expand description
Requests that need the app itself, drained on its next tick.
Variants§
Open(PathBuf)
CommentsTaken
The socket thread already emptied the shared list.
Agent(AgentEvent)
Test(TestRun)
Pane(String)
Input for a Cellix running as a pane, as the mod’s JSON.
Reply
An agent answering a comment.
Fields
Suggest
An agent suggesting a comment the reviewer didn’t make. Answers with its number.
Threads(Sender<String>)
Wants the comments on the project, as JSON.
TakeThreads(Sender<String>)
Wants the comments no agent has seen, as JSON, and marks them seen.
Waiting(Sender<String>)
Wants everything no agent has had yet, as JSON comments, and takes nothing: the review’s comments on code and the comments on documents, which are threads.
Plan
A plan is waiting. The connection stays open until reply is answered or dropped.
Team
An agent starting, messaging or waiting for another. The connection stays open until
reply has the answer’s line, which may be a while for a wait.