pub struct TimeScrubber { /* private fields */ }Expand description
Time-travel scrubber for interactive debugging.
Implementations§
Source§impl TimeScrubber
impl TimeScrubber
Sourcepub fn new(
checkpoint_interval: u64,
max_storage: usize,
compression_level: i32,
record_rng_state: bool,
) -> Self
pub fn new( checkpoint_interval: u64, max_storage: usize, compression_level: i32, record_rng_state: bool, ) -> Self
Create a new time scrubber.
Sourcepub const fn current_time(&self) -> SimTime
pub const fn current_time(&self) -> SimTime
Get current time.
Sourcepub const fn current_state(&self) -> &SimState
pub const fn current_state(&self) -> &SimState
Get current state.
Sourcepub const fn checkpoints(&self) -> &CheckpointManager
pub const fn checkpoints(&self) -> &CheckpointManager
Get checkpoint manager.
Sourcepub fn checkpoints_mut(&mut self) -> &mut CheckpointManager
pub fn checkpoints_mut(&mut self) -> &mut CheckpointManager
Get mutable checkpoint manager.
Sourcepub const fn journal(&self) -> &EventJournal
pub const fn journal(&self) -> &EventJournal
Get journal.
Sourcepub fn journal_mut(&mut self) -> &mut EventJournal
pub fn journal_mut(&mut self) -> &mut EventJournal
Get mutable journal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimeScrubber
impl RefUnwindSafe for TimeScrubber
impl Send for TimeScrubber
impl Sync for TimeScrubber
impl Unpin for TimeScrubber
impl UnsafeUnpin for TimeScrubber
impl UnwindSafe for TimeScrubber
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