Skip to main content

PaneExecutionEngine

Struct PaneExecutionEngine 

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

Journal and live substrate, paired with the host’s canonical render tree.

Implementations§

Source§

impl PaneExecutionEngine

Source

pub fn new(tree: &PaneTree) -> Self

Start checkpointed history with a 4096-edit bound and an 8ms observation envelope. Adaptive and persistent execution require an explicit policy: full-wrapper comparisons currently show workload-dependent regressions in those modes.

Source

pub fn from_timeline( tree: &PaneTree, timeline: PaneInteractionTimeline, ) -> Result<Self, PaneExecutionError>

Validate the complete imported journal and all checkpoints, including redo.

Source

pub const fn timeline(&self) -> &PaneInteractionTimeline

Source

pub const fn policy(&self) -> PaneExecutionPolicy

Source

pub const fn strategy(&self) -> PaneMemoryStrategy

Source

pub const fn status(&self) -> &PaneExecutionStatus

Source

pub const fn applied_len(&self) -> usize

Source

pub const fn set_latency_envelope_ns(&mut self, envelope: u64)

Set the measured-operation envelope. Zero disables this monitor.

Source

pub fn apply_and_record( &mut self, tree: &mut PaneTree, sequence: u64, id: u64, operation: PaneOperation, ) -> Result<PaneOperationOutcome, PaneExecutionError>

Source

pub fn apply_and_record_coalesced_resize_delta( &mut self, tree: &mut PaneTree, sequence: u64, id: u64, operation: PaneOperation, boundary: u64, ) -> Result<PaneOperationOutcome, PaneExecutionError>

Source

pub fn undo(&mut self, tree: &mut PaneTree) -> Result<bool, PaneExecutionError>

Source

pub fn redo(&mut self, tree: &mut PaneTree) -> Result<bool, PaneExecutionError>

Source

pub fn replay(&self) -> Result<PaneTree, PaneExecutionError>

Source

pub const fn begin_gesture(&mut self)

Pin the pre-gesture cursor against migration and pruning until completion.

Source

pub fn end_gesture(&mut self, tree: &PaneTree) -> Result<(), PaneExecutionError>

Source

pub fn set_policy( &mut self, tree: &PaneTree, policy: PaneExecutionPolicy, ) -> Result<(), PaneExecutionError>

Install an override atomically. Active gestures defer substrate maintenance.

Source

pub fn observe( &mut self, tree: &PaneTree, sample: PaneExecutionSample, ) -> Result<(), PaneExecutionError>

Trait Implementations§

Source§

impl Clone for PaneExecutionEngine

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 PaneExecutionEngine

Source§

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

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

impl PaneHistory for PaneExecutionEngine

Source§

fn apply_and_record( &mut self, tree: &mut PaneTree, sequence: u64, id: u64, operation: PaneOperation, ) -> Result<PaneOperationOutcome, PaneExecutionError>

Source§

fn apply_and_record_coalesced_resize_delta( &mut self, tree: &mut PaneTree, sequence: u64, id: u64, operation: PaneOperation, boundary: u64, ) -> Result<PaneOperationOutcome, PaneExecutionError>

Source§

fn undo(&mut self, tree: &mut PaneTree) -> Result<bool, PaneExecutionError>

Source§

fn redo(&mut self, tree: &mut PaneTree) -> Result<bool, PaneExecutionError>

Source§

fn replay(&self) -> Result<PaneTree, PaneExecutionError>

Source§

fn applied_len(&self) -> usize

Source§

fn observe( &mut self, tree: &PaneTree, sample: PaneExecutionSample, ) -> Result<(), PaneExecutionError>

Maintenance errors are diagnostic: the preceding accepted edit remains accepted.

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> 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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.