pub struct SystemTimeProvider {}
Expand description
Provide current time through SystemTime
.
Trait Implementations§
Source§impl Time for SystemTimeProvider
impl Time for SystemTimeProvider
Source§fn unix_time_now(&self) -> u64
fn unix_time_now(&self) -> u64
Must return the unix epoch corresponding to the current time.
Auto Trait Implementations§
impl Freeze for SystemTimeProvider
impl RefUnwindSafe for SystemTimeProvider
impl Send for SystemTimeProvider
impl Sync for SystemTimeProvider
impl Unpin for SystemTimeProvider
impl UnwindSafe for SystemTimeProvider
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