pub struct MarkingCache { /* private fields */ }Expand description
Cache of computed state snapshots for efficient seek/step operations.
Implementations§
Source§impl MarkingCache
impl MarkingCache
Sourcepub fn compute_at(
&mut self,
events: &[NetEvent],
target_index: usize,
) -> ComputedState
pub fn compute_at( &mut self, events: &[NetEvent], target_index: usize, ) -> ComputedState
Computes the state at the given event index, using cached snapshots to minimize the number of events that need to be replayed.
Sourcepub fn invalidate(&mut self)
pub fn invalidate(&mut self)
Invalidates the cache.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MarkingCache
impl RefUnwindSafe for MarkingCache
impl Send for MarkingCache
impl Sync for MarkingCache
impl Unpin for MarkingCache
impl UnsafeUnpin for MarkingCache
impl UnwindSafe for MarkingCache
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