pub struct PlanRun {
pub complete: bool,
pub dispatched: Vec<String>,
pub failed: Option<String>,
pub remaining: Vec<String>,
}Expand description
The outcome of driving a Plan through a CrewRunner with run_plan.
Fields§
§complete: boolEvery leaf reached Done AND at least one leaf actually ran (so an
all-branch / parent-cycle plan, which has zero leaves, is not reported
as a false success). A genuinely empty plan (no subtasks) is true.
dispatched: Vec<String>Leaf ids dispatched, in order. When failed is set, the last id is the
one that failed.
failed: Option<String>The rendered error from the leaf that failed, if the run stopped on one.
remaining: Vec<String>Leaf ids still Pending when the run ended. Empty on a clean finish; the
failed leaf’s dependents after a failure; non-empty with failed == None means the run STALLED — a remaining leaf depends on a branch or an
absent dep, so no progress was possible. Lets a caller tell a dep-stall
from a clean finish.
Trait Implementations§
impl Eq for PlanRun
impl StructuralPartialEq for PlanRun
Auto Trait Implementations§
impl Freeze for PlanRun
impl RefUnwindSafe for PlanRun
impl Send for PlanRun
impl Sync for PlanRun
impl Unpin for PlanRun
impl UnsafeUnpin for PlanRun
impl UnwindSafe for PlanRun
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
Converts
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>
Converts
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