pub struct TestTime;Expand description
The virtual time of the test scheduler: ticks of 100 nanoseconds, as TimeSpan counts them.
Trait Implementations§
Source§impl VirtualTimeClock for TestTime
impl VirtualTimeClock for TestTime
Source§fn to_system_time(absolute: i64) -> SystemTime
fn to_system_time(absolute: i64) -> SystemTime
new DateTimeOffset(absolute, TimeSpan.Zero), measured from the epoch of the system time.
Source§fn adjust_due_time(due_time: i64, clock: i64) -> i64
fn adjust_due_time(due_time: i64, clock: i64) -> i64
Work scheduled for now or earlier runs one tick later (TestScheduler.ScheduleAbsolute).
Source§fn to_relative(duration: Duration) -> i64
fn to_relative(duration: Duration) -> i64
A duration as a relative time (
ToRelative).Auto Trait Implementations§
impl Freeze for TestTime
impl RefUnwindSafe for TestTime
impl Send for TestTime
impl Sync for TestTime
impl Unpin for TestTime
impl UnsafeUnpin for TestTime
impl UnwindSafe for TestTime
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