Skip to main content

CommandReplayState

Struct CommandReplayState 

Source
pub struct CommandReplayState { /* private fields */ }
Expand description

Per-command replay state: the retained snapshot (previous stable form of the recording) and the segments carved out of it. This is the double buffer sol’s plan sanctions — previous and current forms coexist only for comparison.

Implementations§

Source§

impl CommandReplayState

Source

pub fn segments(&self) -> &[CommandSegment]

Source

pub fn stats(&self) -> (u64, u64)

Lifetime (deaths, splits) across every verified frame — diagnostics for judging how churn interacts with retention.

Source

pub fn optimistic_commits(&self) -> u64

Frames the pooled fast path fully committed (0 without an executor).

Source

pub fn prefix_commits(&self) -> u64

Frames where the pooled pass committed a non-empty strict prefix of the segments before handing the serial walk the failure point (0 without an executor).

Source

pub fn center(&self) -> Point

The similarity pivot all span transforms rotate and scale about.

Source

pub fn collapsed_from_captured(&self) -> bool

Whether the last Self::advance_pooled collapsed out of an established capture (the Captured-phase coverage collapse) — the expensive full-rematerialization frame the stale-transition serve can replace with the previous frame’s emission. False on every bootstrap AllDynamic frame: an idle snapshot, a short tape, or a retirement never had a capture to collapse out of.

Source

pub fn advance(&mut self, current: &CommandRecording) -> ReplayOutcome

Advances the state machine with this frame’s recording and returns what the frame can retain. Phases mirror the flat-list detector: snapshot on the first sighting, partition into transform-consistent chains on the second, verify per entry from the third on. A structural collapse or coverage erosion re-snapshots; correctness never depends on the detector being right about stability — a wrong guess costs a frame of ordinary rendering.

Source

pub fn advance_pooled( &mut self, current: &CommandRecording, pool: Option<&dyn VerifyExecutor>, ) -> ReplayOutcome

Self::advance with an optional executor that verification fans its per-segment span matching across. Anchors are located in a serial phase that uses the exact candidate order of the serial walk; only the span bodies fan out. A frame where every body matches whole commits without touching the serial walk; any other frame commits the segments strictly before the first failure — equal by construction to what the serial walk produces for them — and runs the serial split/death/re-snapshot machinery from the failure point on. The outcome is identical with and without an executor.

Trait Implementations§

Source§

impl Debug for CommandReplayState

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for CommandReplayState

Source§

fn default() -> Self

Returns the “default value” for a type. 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> 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, 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, <T as TryFrom<U>>::Error>

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.