pub struct Verdict {
pub status: RunStatus,
pub left_pr: bool,
pub quota_hit: bool,
pub parked: bool,
pub no_viable_candidates: bool,
}Expand description
What a finished run tells the queue about the task it came from.
A struct rather than a fourth and fifth boolean argument: the two flags
answer different questions about the same run, and a call site passing
(…, true, false) is one transposition away from refunding attempts
forever.
Fields§
§status: RunStatusWhere the graph stopped.
left_pr: boolThe run opened a pull request.
quota_hit: boolAt least one seat was lost to a rate limit.
parked: boolThe run parked at a node boundary because it was asked to.
no_viable_candidates: boolThe run never produced a single candidate a judge could look at.
Distinct from quota_hit: a run can lose a seat to a rate limit and
still have another candidate worth judging, in which case the loss was
not the reason nothing came of the run. This is true only when the
implement wave ended with nothing viable at all.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more