pub struct ResumePlan {
pub is_resume: bool,
/* private fields */
}Expand description
The resume plan for one pre-mapped scenario tree. Maps each
phase’s identity-key to its ResumeAction. A “fresh” plan
(no saved checkpoint) maps every phase to ReRun.
Fields§
§is_resume: booltrue when at least one phase was loaded from a
previously-flushed checkpoint document — i.e. this is a
resume run, not a fresh start. Drives the resume banner
in the runner header and the --- RESUMED --- separator
in session.log.
Implementations§
Source§impl ResumePlan
impl ResumePlan
Sourcepub fn from_checkpoint(
saved: &Checkpoint,
candidates: &[(PhaseIdentity, bool)],
current_params: &HashMap<String, String>,
) -> Self
pub fn from_checkpoint( saved: &Checkpoint, candidates: &[(PhaseIdentity, bool)], current_params: &HashMap<String, String>, ) -> Self
Build a plan from a saved checkpoint and a list of
freshly-pre-mapped phase candidates. candidates is
(identity, declared_idempotent); the second entry
reflects the workload’s checkpoint: declaration for
that phase (true for idempotent, false for
none/absent).
Sourcepub fn action_for(&self, identity: &PhaseIdentity) -> ResumeAction
pub fn action_for(&self, identity: &PhaseIdentity) -> ResumeAction
Look up the action for a given phase identity. Returns
ReRun for unknown phases — the conservative default so
pre-map drift can never cause a phase to silently skip.
Sourcepub fn skip_count(&self) -> usize
pub fn skip_count(&self) -> usize
Number of phases the plan classifies as Skip.
Sourcepub fn cursor_resume_count(&self) -> usize
pub fn cursor_resume_count(&self) -> usize
Number of phases the plan classifies as CursorResume.
Sourcepub fn mismatch_count(&self) -> usize
pub fn mismatch_count(&self) -> usize
Number of phases the plan classifies as
IdentityMismatch. Surfaced in the resume banner so
operators can tell at a glance whether their YAML edit
invalidated phases they thought were stable.
Trait Implementations§
Source§impl Clone for ResumePlan
impl Clone for ResumePlan
Source§impl Debug for ResumePlan
impl Debug for ResumePlan
Auto Trait Implementations§
impl Freeze for ResumePlan
impl RefUnwindSafe for ResumePlan
impl Send for ResumePlan
impl Sync for ResumePlan
impl Unpin for ResumePlan
impl UnsafeUnpin for ResumePlan
impl UnwindSafe for ResumePlan
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
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<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