pub struct ReplayStepIter<'a, S: KernelState> { /* private fields */ }Expand description
Iterator that yields (state_after_event, sequenced_event) when replaying step-by-step.
Implementations§
Source§impl<'a, S: KernelState> ReplayStepIter<'a, S>
impl<'a, S: KernelState> ReplayStepIter<'a, S>
Sourcepub fn next_step(&mut self) -> Result<Option<(S, SequencedEvent)>, KernelError>
pub fn next_step(&mut self) -> Result<Option<(S, SequencedEvent)>, KernelError>
Returns the current state and the next event index (1-based from run), or None if done.
Sourcepub fn current_state(&self) -> &S
pub fn current_state(&self) -> &S
Current state (after all steps applied so far).
Auto Trait Implementations§
impl<'a, S> Freeze for ReplayStepIter<'a, S>where
S: Freeze,
impl<'a, S> !RefUnwindSafe for ReplayStepIter<'a, S>
impl<'a, S> Send for ReplayStepIter<'a, S>
impl<'a, S> Sync for ReplayStepIter<'a, S>
impl<'a, S> Unpin for ReplayStepIter<'a, S>where
S: Unpin,
impl<'a, S> UnsafeUnpin for ReplayStepIter<'a, S>where
S: UnsafeUnpin,
impl<'a, S> !UnwindSafe for ReplayStepIter<'a, S>
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