pub enum Job {
Claim {
id: RequestId,
},
Run {
id: RequestId,
tool: ToolName,
claim: bool,
},
Submit {
id: RequestId,
answer: Answer,
claim: bool,
},
Release {
ids: Vec<RequestId>,
quit: bool,
},
}Expand description
Lifecycle work with owned inputs, so the screen keeps drawing while it runs.
Variants§
Claim
Explicit claim for an embedded single-request review.
Run
Claim first when claim, then run the tool.
Submit
Claim first when claim, then submit and publish like request submit.
Release
Release the reviewer’s remaining claims; quit afterwards when quit.
Implementations§
Source§impl Job
impl Job
Sourcepub async fn run(
self,
state: PathBuf,
reviewer: ReviewerId,
cancel: CancellationToken,
log: Sink,
) -> Outcome
pub async fn run( self, state: PathBuf, reviewer: ReviewerId, cancel: CancellationToken, log: Sink, ) -> Outcome
Carry out the job through the human lifecycle API, as request does; every UI runs
its Human actions through here. A tool run logs to log from its start line to its end,
failures included; a launched program’s output keeps arriving after the job returns.
Trait Implementations§
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Forget for Job
impl Freeze for Jobwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Point>: Freeze,
PhantomData<RequestId>: Freeze,
impl Move for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Jobwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Point>: UnsafeUnpin,
PhantomData<RequestId>: UnsafeUnpin,
impl UnwindSafe for Job
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