pub enum RunOutcome {
Completed(CompletedRecord),
Skipped(SkipRecord),
Cancelled(CancelledRecord),
}Expand description
Terminal state of one task in a crate::run_graph invocation.
Completed wraps a CompletedRecord for any task that the
scheduler admitted into the lookup-then-spawn pipeline and
that reached a run classification (EXEC-009); Skipped
wraps a SkipRecord for any task the cascade marked
do-not-schedule before admission (EXEC-010 / EXEC-011);
Cancelled wraps a CancelledRecord for any task that
the cancellation flow (EXEC-012..015) reached, either
directly (signalled in flight, drained from the ready set)
or via cascade.
run_task itself returns the bare CompletedRecord
(never wrapped in this enum) because a single-task lifecycle
has no cascade to inspect.
Variants§
Completed(CompletedRecord)
A task that ran to a CompletedRecord (succeeded or
failed per EXEC-009).
Skipped(SkipRecord)
A task the scheduler cascade-skipped before admission.
Cancelled(CancelledRecord)
A task the cancellation flow caught at any point (in flight, on the ready set, or via cascade).
Implementations§
Trait Implementations§
Source§impl Clone for RunOutcome
impl Clone for RunOutcome
Source§fn clone(&self) -> RunOutcome
fn clone(&self) -> RunOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunOutcome
impl Debug for RunOutcome
Source§impl PartialEq for RunOutcome
impl PartialEq for RunOutcome
Source§fn eq(&self, other: &RunOutcome) -> bool
fn eq(&self, other: &RunOutcome) -> bool
self and other values to be equal, and is used by ==.