pub struct ReplayState<S: Clone> {
pub current_index: usize,
pub total_steps: usize,
pub current_state: Option<S>,
pub speed: ReplaySpeed,
pub paused: bool,
}Expand description
Replay state for audit log playback.
Fields§
§current_index: usizeCurrent step index in the log
total_steps: usizeTotal steps in the log
current_state: Option<S>Current state snapshot
speed: ReplaySpeedReplay speed
paused: boolWhether replay is paused
Implementations§
Source§impl<S: Clone> ReplayState<S>
impl<S: Clone> ReplayState<S>
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if replay is complete.
Sourcepub fn progress_percent(&self) -> f64
pub fn progress_percent(&self) -> f64
Get progress as percentage.
Trait Implementations§
Source§impl<S: Clone + Clone> Clone for ReplayState<S>
impl<S: Clone + Clone> Clone for ReplayState<S>
Source§fn clone(&self) -> ReplayState<S>
fn clone(&self) -> ReplayState<S>
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 moreAuto Trait Implementations§
impl<S> Freeze for ReplayState<S>where
S: Freeze,
impl<S> RefUnwindSafe for ReplayState<S>where
S: RefUnwindSafe,
impl<S> Send for ReplayState<S>where
S: Send,
impl<S> Sync for ReplayState<S>where
S: Sync,
impl<S> Unpin for ReplayState<S>where
S: Unpin,
impl<S> UnsafeUnpin for ReplayState<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ReplayState<S>where
S: UnwindSafe,
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