pub struct StdSystemTime;
Expand description
Default implementation of TimeSource
Implements now
by calling SystemTime::now()
.
Trait Implementations§
Source§impl TimeSource for StdSystemTime
impl TimeSource for StdSystemTime
Source§fn now(&self) -> SystemTime
fn now(&self) -> SystemTime
Get
SystemTime::now()
or the mocked equivalentAuto Trait Implementations§
impl Freeze for StdSystemTime
impl RefUnwindSafe for StdSystemTime
impl Send for StdSystemTime
impl Sync for StdSystemTime
impl Unpin for StdSystemTime
impl UnwindSafe for StdSystemTime
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