pub struct PaneSemanticInputTrace {
pub metadata: PaneSemanticInputTraceMetadata,
pub events: Vec<PaneSemanticInputEvent>,
}Expand description
Canonical replay trace for semantic pane input streams.
Fields§
§metadata: PaneSemanticInputTraceMetadata§events: Vec<PaneSemanticInputEvent>Implementations§
Source§impl PaneSemanticInputTrace
impl PaneSemanticInputTrace
Sourcepub fn new(
seed: u64,
start_unix_ms: u64,
host: impl Into<String>,
events: Vec<PaneSemanticInputEvent>,
) -> Result<Self, PaneSemanticInputTraceError>
pub fn new( seed: u64, start_unix_ms: u64, host: impl Into<String>, events: Vec<PaneSemanticInputEvent>, ) -> Result<Self, PaneSemanticInputTraceError>
Build a canonical semantic input trace and compute its checksum.
Sourcepub fn recompute_checksum(&self) -> u64
pub fn recompute_checksum(&self) -> u64
Deterministically recompute the checksum over trace payload fields.
Sourcepub fn validate(&self) -> Result<(), PaneSemanticInputTraceError>
pub fn validate(&self) -> Result<(), PaneSemanticInputTraceError>
Validate schema/version, event ordering, and checksum invariants.
Sourcepub fn replay(
&self,
machine: &mut PaneDragResizeMachine,
) -> Result<PaneSemanticReplayOutcome, PaneSemanticReplayError>
pub fn replay( &self, machine: &mut PaneDragResizeMachine, ) -> Result<PaneSemanticReplayOutcome, PaneSemanticReplayError>
Replay a semantic trace through a drag/resize machine.
Trait Implementations§
Source§impl Clone for PaneSemanticInputTrace
impl Clone for PaneSemanticInputTrace
Source§fn clone(&self) -> PaneSemanticInputTrace
fn clone(&self) -> PaneSemanticInputTrace
Returns a duplicate of the value. Read more
1.0.0 · 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 PaneSemanticInputTrace
impl Debug for PaneSemanticInputTrace
Source§impl<'de> Deserialize<'de> for PaneSemanticInputTrace
impl<'de> Deserialize<'de> for PaneSemanticInputTrace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PaneSemanticInputTrace
impl PartialEq for PaneSemanticInputTrace
Source§impl Serialize for PaneSemanticInputTrace
impl Serialize for PaneSemanticInputTrace
impl Eq for PaneSemanticInputTrace
impl StructuralPartialEq for PaneSemanticInputTrace
Auto Trait Implementations§
impl Freeze for PaneSemanticInputTrace
impl RefUnwindSafe for PaneSemanticInputTrace
impl Send for PaneSemanticInputTrace
impl Sync for PaneSemanticInputTrace
impl Unpin for PaneSemanticInputTrace
impl UnsafeUnpin for PaneSemanticInputTrace
impl UnwindSafe for PaneSemanticInputTrace
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