pub struct StoredRun { /* private fields */ }Expand description
Validated durable snapshot of one tenant-scoped run row.
Implementations§
Source§impl StoredRun
impl StoredRun
Sourcepub const fn lifecycle(&self) -> &RunLifecycle
pub const fn lifecycle(&self) -> &RunLifecycle
Returns current validated business lifecycle.
Sourcepub const fn journal_head(&self) -> Option<&JournalHead>
pub const fn journal_head(&self) -> Option<&JournalHead>
Returns the current exact journal head, if non-empty.
Sourcepub const fn lease(&self) -> Option<&RunLease>
pub const fn lease(&self) -> Option<&RunLease>
Returns the active lease, including an expired lease not yet reclaimed.
Sourcepub const fn last_fencing_epoch(&self) -> Option<FencingEpoch>
pub const fn last_fencing_epoch(&self) -> Option<FencingEpoch>
Returns the last issued fencing epoch; an unleased new run has none.
Sourcepub const fn checkpoint(&self) -> Option<&CheckpointPointer>
pub const fn checkpoint(&self) -> Option<&CheckpointPointer>
Returns the compact current-checkpoint pointer, if the graph has reached its first durable barrier.
Sourcepub const fn scheduler_ready_at(&self) -> Option<Timestamp>
pub const fn scheduler_ready_at(&self) -> Option<Timestamp>
Returns when the run most recently entered the durable scheduler queue.
Waiting and terminal runs have no readiness observation. A live or expired lease can delay actual availability beyond this instant.
Sourcepub const fn scheduler_not_before(&self) -> Option<Timestamp>
pub const fn scheduler_not_before(&self) -> Option<Timestamp>
Returns the durable execution gate for a verified delayed node retry.
Queue age remains available through Self::scheduler_ready_at. A
scheduler must not claim this run before the inclusive instant returned
here. Claiming at or after the boundary clears the gate atomically.
Sourcepub const fn wait_set_digest(&self) -> Option<Digest>
pub const fn wait_set_digest(&self) -> Option<Digest>
Returns the integrity checksum of the current ordered outstanding wait set.
Sourcepub const fn unresolved_wait_count(&self) -> u8
pub const fn unresolved_wait_count(&self) -> u8
Returns the number of outstanding interrupt/timer registrations.
Sourcepub const fn next_timer_due_at(&self) -> Option<Timestamp>
pub const fn next_timer_due_at(&self) -> Option<Timestamp>
Returns the earliest outstanding timer due instant, when present.
Sourcepub const fn next_interrupt_expiry_at(&self) -> Option<Timestamp>
pub const fn next_interrupt_expiry_at(&self) -> Option<Timestamp>
Returns the earliest finite outstanding interrupt expiry, when present.
Sourcepub const fn is_quarantined(&self) -> bool
pub const fn is_quarantined(&self) -> bool
Returns whether integrity or operator policy quarantined the run.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StoredRun
impl !UnwindSafe for StoredRun
impl Forget for StoredRun
impl Freeze for StoredRun
impl Move for StoredRun
impl Send for StoredRun
impl Sync for StoredRun
impl Unpin for StoredRun
impl UnsafeUnpin for StoredRun
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