pub struct MockTimeControl;Expand description
Control handle for advancing mock time within a scope
Implementations§
Source§impl MockTimeControl
impl MockTimeControl
pub fn advance_nanos(&self, nanos: u128)
pub fn advance_micros(&self, micros: u64)
pub fn advance_millis(&self, millis: u64)
pub fn advance(&self, millis: u64)
pub fn set_nanos(&self, nanos: u128)
pub fn set_micros(&self, micros: u64)
pub fn set_millis(&self, millis: u64)
pub fn set(&self, millis: u64)
pub fn current_nanos(&self) -> u128
pub fn current_micros(&self) -> u64
pub fn current_millis(&self) -> u64
pub fn current(&self) -> u64
Auto Trait Implementations§
impl Freeze for MockTimeControl
impl RefUnwindSafe for MockTimeControl
impl Send for MockTimeControl
impl Sync for MockTimeControl
impl Unpin for MockTimeControl
impl UnwindSafe for MockTimeControl
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more