pub struct ReplayOptions { /* private fields */ }Expand description
Controls the pace and parallelism of a Replayer::replay run.
Implementations§
Source§impl ReplayOptions
impl ReplayOptions
Sourcepub fn set_num_threads(&mut self, num_threads: u32)
pub fn set_num_threads(&mut self, num_threads: u32)
Number of threads issuing the replayed operations. 0 and 1 both mean single threaded.
Default: 1
Sourcepub fn get_num_threads(&self) -> u32
pub fn get_num_threads(&self) -> u32
Returns the current num_threads setting.
See Self::set_num_threads for what this controls.
Sourcepub fn set_fast_forward(&mut self, fast_forward: f64)
pub fn set_fast_forward(&mut self, fast_forward: f64)
Scales the recorded delay between operations. Above 1.0 replays faster
than real time, between 0.0 and 1.0 slower, 1.0 matches the original
rate. Replayer::replay rejects values at or below 0.0.
Default: 1.0
Sourcepub fn get_fast_forward(&self) -> f64
pub fn get_fast_forward(&self) -> f64
Returns the current fast_forward setting.
See Self::set_fast_forward for what this controls.
Trait Implementations§
Source§impl Default for ReplayOptions
impl Default for ReplayOptions
Source§impl Drop for ReplayOptions
impl Drop for ReplayOptions
impl Send for ReplayOptions
impl Sync for ReplayOptions
Auto Trait Implementations§
impl Freeze for ReplayOptions
impl RefUnwindSafe for ReplayOptions
impl Unpin for ReplayOptions
impl UnsafeUnpin for ReplayOptions
impl UnwindSafe for ReplayOptions
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