Struct injectable_time::FakeTime
source · pub struct FakeTime { /* private fields */ }
Expand description
FakeTime instances return the last value that was configured by testing code via set_ticks()
or add_ticks()
. Upon initialization, they return 0.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FakeTime
impl !RefUnwindSafe for FakeTime
impl Send for FakeTime
impl Sync for FakeTime
impl Unpin for FakeTime
impl !UnwindSafe for FakeTime
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)