pub struct ManualClock { /* private fields */ }Expand description
Manual clock.
Useful for testing purposes.
Implementations§
Source§impl ManualClock
impl ManualClock
Trait Implementations§
Source§impl ClockSource for ManualClock
impl ClockSource for ManualClock
Source§fn current_timestamp(&self) -> i64
fn current_timestamp(&self) -> i64
The current timestamp in milliseconds since the Unix epoch.
Auto Trait Implementations§
impl !Freeze for ManualClock
impl RefUnwindSafe for ManualClock
impl Send for ManualClock
impl Sync for ManualClock
impl Unpin for ManualClock
impl UnwindSafe for ManualClock
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