Skip to main content

RecoveryNode

Enum RecoveryNode 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Completed

Reuse a fully verified immutable result without executing the node.

Fields

§activation: NodeActivation

Canonical activation derived from the checkpoint.

§result: PendingNodeResultHead

Exact durable result to consume at the barrier.

§

Dispatchable

The runtime may durably start a fresh physical attempt.

Fields

§activation: NodeActivation

Canonical activation derived from the checkpoint.

§reason: NodeDispatchReason

Why another physical start is semantically permitted.

§

Deferred

The activation must remain durably deferred until database time reaches not_before.

Fields

§activation: NodeActivation

Canonical activation derived from the checkpoint.

§not_before: Timestamp

Inclusive earliest database instant for a safe successor start.

§

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: NodeActivation

Canonical activation derived from the checkpoint.

§attempt: NodeAttemptStartHead

Exact durable start that remains in flight.

§

Failed

The latest physical attempt failed without automatic retry authority.

Fields

§activation: NodeActivation

Canonical activation derived from the checkpoint.

§failure: Failure

Public-safe durable failure evidence.

§

Exhausted

No further physical start is allowed for this logical activation.

Fields

§activation: NodeActivation

Canonical activation derived from the checkpoint.

§attempt: NodeAttemptStartHead

Most recent durable physical start.

§failure: Option<Failure>

Latest failure evidence when exhaustion followed a safe failure.

Implementations§

Source§

impl RecoveryNode

Source

pub const fn kind(&self) -> RecoveryNodeKind

Returns the closed scheduler classification.

Source

pub const fn activation(&self) -> &NodeActivation

Returns the canonical logical activation.

Source

pub const fn dispatch_reason(&self) -> Option<NodeDispatchReason>

Returns the dispatch reason when a new start is permitted.

Source

pub const fn result(&self) -> Option<&PendingNodeResultHead>

Returns the immutable completed result, if any.

Source

pub const fn not_before(&self) -> Option<Timestamp>

Returns the inclusive retry instant for a deferred node, if any.

Source

pub const fn in_flight_attempt(&self) -> Option<&NodeAttemptStartHead>

Returns the same-fence unfinished start, if any.

Source

pub const fn failure(&self) -> Option<&Failure>

Returns terminal public-safe node failure evidence, if any.

Source

pub const fn exhausted_attempt(&self) -> Option<&NodeAttemptStartHead>

Returns the final physical start when the hard attempt limit was reached, if applicable.

Trait Implementations§

Source§

impl Clone for RecoveryNode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RecoveryNode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.