pub struct FoldTurn {Show 21 fields
pub records: usize,
pub inspected: usize,
pub invoked: usize,
pub folded: usize,
pub nothing_left: usize,
pub already_folded: usize,
pub live: usize,
pub resumable: usize,
pub within_grace: usize,
pub recovery_retained: usize,
pub proof_incomplete: usize,
pub unreadable: usize,
pub record_gone: usize,
pub failed: usize,
pub cursor: Option<String>,
pub high_water: Option<String>,
pub stopped: FoldStop,
pub cycle_restart: Option<String>,
pub cursor_error: Option<String>,
pub elapsed_ms: u64,
pub notes: Vec<FoldNote>,
}Expand description
What one fold_turn did, per outcome, for the service receipt.
Fields§
§records: usizeRun records in the history when the pass began (the inventory’s size).
inspected: usizeRun records judged this pass.
invoked: usizegraph::fold_run_when invocations this pass (what bounds.fold bounds).
folded: usizeFolds that ran and removed something.
nothing_left: usizeFolds that ran and found nothing left to remove.
already_folded: usizeRuns the record shows to be folded already; no fold was started.
live: usizeClaimed by a live driver or worker, or a lease/lock of it is held.
resumable: usizeA resumable status: someone may still continue the run.
within_grace: usizeFinished less than fold_grace_secs ago.
recovery_retained: usizeExplicitly retained recovery sources.
proof_incomplete: usizeStartup, candidate preservation or the confirmed-merge source proof incomplete.
unreadable: usizerun.json could not be parsed, or became unreadable once the run’s
locks were held.
record_gone: usizeThe record was deleted while the fold waited for its locks.
failed: usizegraph::fold_run_when failed (git, filesystem).
cursor: Option<String>Run id the next pass continues after; None: it starts a new cycle.
high_water: Option<String>Last run id of the cycle’s range, fixed when the cycle began.
stopped: FoldStopWhy this pass ended.
cycle_restart: Option<String>Why a new cycle was started although one was saved, when it was (unreadable cursor file, high-water mark below the cursor, a cursor naming a run that no longer exists).
cursor_error: Option<String>The cycle file could not be saved: the next pass repeats this slice.
elapsed_ms: u64Wall clock of the pass, inventory included.
notes: Vec<FoldNote>What stopped the first few proof_incomplete and failed runs.
Trait Implementations§
impl Eq for FoldTurn
impl StructuralPartialEq for FoldTurn
Auto Trait Implementations§
impl Forget for FoldTurn
impl Freeze for FoldTurn
impl Move for FoldTurn
impl RefUnwindSafe for FoldTurn
impl Send for FoldTurn
impl Sync for FoldTurnwhere
RawVecInner: Sync,
impl Unpin for FoldTurn
impl UnsafeUnpin for FoldTurnwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<FoldNote>: UnsafeUnpin,
impl UnwindSafe for FoldTurn
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<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
key and return true if they are equal.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