pub struct TimeControl { /* private fields */ }
Expand description
A guard that provides safe access to time manipulation methods in tests
Implementations§
Source§impl TimeControl
impl TimeControl
Sourcepub fn total_waited(&self) -> Duration
pub fn total_waited(&self) -> Duration
Get the total duration waited since creation or last reset
Sourcepub fn reset_wait_tracking(&self)
pub fn reset_wait_tracking(&self)
Reset wait tracking statistics
Sourcepub fn wait_call_count(&self) -> usize
pub fn wait_call_count(&self) -> usize
Get the number of wait calls since creation or last reset
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimeControl
impl !RefUnwindSafe for TimeControl
impl Send for TimeControl
impl Sync for TimeControl
impl Unpin for TimeControl
impl !UnwindSafe for TimeControl
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