#[non_exhaustive]pub enum RecoveryNode {
Completed {
activation: NodeActivation,
result: PendingNodeResultHead,
},
Dispatchable {
activation: NodeActivation,
reason: NodeDispatchReason,
},
Deferred {
activation: NodeActivation,
not_before: Timestamp,
},
InFlight {
activation: NodeActivation,
attempt: NodeAttemptStartHead,
},
Failed {
activation: NodeActivation,
failure: Failure,
},
Exhausted {
activation: NodeActivation,
attempt: NodeAttemptStartHead,
failure: Option<Failure>,
},
}Expand description
Deterministic recovery decision for one logical ready-node activation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Completed
Reuse a fully verified immutable result without executing the node.
Fields
activation: NodeActivationCanonical activation derived from the checkpoint.
result: PendingNodeResultHeadExact durable result to consume at the barrier.
Dispatchable
The runtime may durably start a fresh physical attempt.
Fields
activation: NodeActivationCanonical activation derived from the checkpoint.
reason: NodeDispatchReasonWhy another physical start is semantically permitted.
Deferred
The activation must remain durably deferred until database time reaches
not_before.
Fields
activation: NodeActivationCanonical activation derived from the checkpoint.
InFlight
An unfinished start already belongs to the exact current worker fence. Re-execution under the same fence would duplicate in-process work.
Fields
activation: NodeActivationCanonical activation derived from the checkpoint.
attempt: NodeAttemptStartHeadExact durable start that remains in flight.
Failed
The latest physical attempt failed without automatic retry authority.
Fields
activation: NodeActivationCanonical activation derived from the checkpoint.
Exhausted
No further physical start is allowed for this logical activation.
Fields
activation: NodeActivationCanonical activation derived from the checkpoint.
attempt: NodeAttemptStartHeadMost recent durable physical start.
Implementations§
Source§impl RecoveryNode
impl RecoveryNode
Sourcepub const fn kind(&self) -> RecoveryNodeKind
pub const fn kind(&self) -> RecoveryNodeKind
Returns the closed scheduler classification.
Sourcepub const fn activation(&self) -> &NodeActivation
pub const fn activation(&self) -> &NodeActivation
Returns the canonical logical activation.
Sourcepub const fn dispatch_reason(&self) -> Option<NodeDispatchReason>
pub const fn dispatch_reason(&self) -> Option<NodeDispatchReason>
Returns the dispatch reason when a new start is permitted.
Sourcepub const fn result(&self) -> Option<&PendingNodeResultHead>
pub const fn result(&self) -> Option<&PendingNodeResultHead>
Returns the immutable completed result, if any.
Sourcepub const fn not_before(&self) -> Option<Timestamp>
pub const fn not_before(&self) -> Option<Timestamp>
Returns the inclusive retry instant for a deferred node, if any.
Sourcepub const fn in_flight_attempt(&self) -> Option<&NodeAttemptStartHead>
pub const fn in_flight_attempt(&self) -> Option<&NodeAttemptStartHead>
Returns the same-fence unfinished start, if any.
Sourcepub const fn failure(&self) -> Option<&Failure>
pub const fn failure(&self) -> Option<&Failure>
Returns terminal public-safe node failure evidence, if any.
Sourcepub const fn exhausted_attempt(&self) -> Option<&NodeAttemptStartHead>
pub const fn exhausted_attempt(&self) -> Option<&NodeAttemptStartHead>
Returns the final physical start when the hard attempt limit was reached, if applicable.