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>),
Plan {
path: PathBuf,
reply: Sender<Decision>,
},
}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.
Plan
A plan is waiting. The connection stays open until reply is answered or dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more