pub struct PaneExecutionEngine { /* private fields */ }Expand description
Journal and live substrate, paired with the host’s canonical render tree.
Implementations§
Source§impl PaneExecutionEngine
impl PaneExecutionEngine
Sourcepub fn new(tree: &PaneTree) -> Self
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.
Sourcepub fn from_timeline(
tree: &PaneTree,
timeline: PaneInteractionTimeline,
) -> Result<Self, PaneExecutionError>
pub fn from_timeline( tree: &PaneTree, timeline: PaneInteractionTimeline, ) -> Result<Self, PaneExecutionError>
Validate the complete imported journal and all checkpoints, including redo.
pub const fn timeline(&self) -> &PaneInteractionTimeline
pub const fn policy(&self) -> PaneExecutionPolicy
pub const fn strategy(&self) -> PaneMemoryStrategy
pub const fn status(&self) -> &PaneExecutionStatus
pub const fn applied_len(&self) -> usize
Sourcepub const fn set_latency_envelope_ns(&mut self, envelope: u64)
pub const fn set_latency_envelope_ns(&mut self, envelope: u64)
Set the measured-operation envelope. Zero disables this monitor.
pub fn apply_and_record( &mut self, tree: &mut PaneTree, sequence: u64, id: u64, operation: PaneOperation, ) -> Result<PaneOperationOutcome, PaneExecutionError>
pub fn apply_and_record_coalesced_resize_delta( &mut self, tree: &mut PaneTree, sequence: u64, id: u64, operation: PaneOperation, boundary: u64, ) -> Result<PaneOperationOutcome, PaneExecutionError>
pub fn undo(&mut self, tree: &mut PaneTree) -> Result<bool, PaneExecutionError>
pub fn redo(&mut self, tree: &mut PaneTree) -> Result<bool, PaneExecutionError>
pub fn replay(&self) -> Result<PaneTree, PaneExecutionError>
Sourcepub const fn begin_gesture(&mut self)
pub const fn begin_gesture(&mut self)
Pin the pre-gesture cursor against migration and pruning until completion.
pub fn end_gesture(&mut self, tree: &PaneTree) -> Result<(), PaneExecutionError>
Sourcepub fn set_policy(
&mut self,
tree: &PaneTree,
policy: PaneExecutionPolicy,
) -> Result<(), PaneExecutionError>
pub fn set_policy( &mut self, tree: &PaneTree, policy: PaneExecutionPolicy, ) -> Result<(), PaneExecutionError>
Install an override atomically. Active gestures defer substrate maintenance.
pub fn observe( &mut self, tree: &PaneTree, sample: PaneExecutionSample, ) -> Result<(), PaneExecutionError>
Trait Implementations§
Source§impl Clone for PaneExecutionEngine
impl Clone for PaneExecutionEngine
Source§fn clone(&self) -> PaneExecutionEngine
fn clone(&self) -> PaneExecutionEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaneExecutionEngine
impl Debug for PaneExecutionEngine
Source§impl PaneHistory for PaneExecutionEngine
impl PaneHistory for PaneExecutionEngine
fn apply_and_record( &mut self, tree: &mut PaneTree, sequence: u64, id: u64, operation: PaneOperation, ) -> Result<PaneOperationOutcome, PaneExecutionError>
fn apply_and_record_coalesced_resize_delta( &mut self, tree: &mut PaneTree, sequence: u64, id: u64, operation: PaneOperation, boundary: u64, ) -> Result<PaneOperationOutcome, PaneExecutionError>
fn undo(&mut self, tree: &mut PaneTree) -> Result<bool, PaneExecutionError>
fn redo(&mut self, tree: &mut PaneTree) -> Result<bool, PaneExecutionError>
fn replay(&self) -> Result<PaneTree, PaneExecutionError>
fn applied_len(&self) -> usize
Source§fn observe(
&mut self,
tree: &PaneTree,
sample: PaneExecutionSample,
) -> Result<(), PaneExecutionError>
fn observe( &mut self, tree: &PaneTree, sample: PaneExecutionSample, ) -> Result<(), PaneExecutionError>
Maintenance errors are diagnostic: the preceding accepted edit remains accepted.
Auto Trait Implementations§
impl Freeze for PaneExecutionEngine
impl RefUnwindSafe for PaneExecutionEngine
impl Send for PaneExecutionEngine
impl Sync for PaneExecutionEngine
impl Unpin for PaneExecutionEngine
impl UnsafeUnpin for PaneExecutionEngine
impl UnwindSafe for PaneExecutionEngine
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
Mutably borrows from an owned value. Read more