pub struct StandardTimeSource;
Expand description
A default TimeSource
implementation that uses SystemTime::now()
and Instant::now()
to get
the current times.
Trait Implementations§
Source§impl Clone for StandardTimeSource
impl Clone for StandardTimeSource
Source§fn clone(&self) -> StandardTimeSource
fn clone(&self) -> StandardTimeSource
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StandardTimeSource
impl Debug for StandardTimeSource
Source§impl Default for StandardTimeSource
impl Default for StandardTimeSource
Source§fn default() -> StandardTimeSource
fn default() -> StandardTimeSource
Returns the “default value” for a type. Read more
Source§impl TimeSource for StandardTimeSource
impl TimeSource for StandardTimeSource
Source§fn now_in_walltime(&self) -> SystemTime
fn now_in_walltime(&self) -> SystemTime
Returns the current wall time.
Source§fn now_in_monotonic(&self) -> Instant
fn now_in_monotonic(&self) -> Instant
Returns the current montonic time.
Source§fn now(&self) -> ComplexTime
fn now(&self) -> ComplexTime
Returns the current ComplexTime (both wall and monotonic times).
Auto Trait Implementations§
impl Freeze for StandardTimeSource
impl RefUnwindSafe for StandardTimeSource
impl Send for StandardTimeSource
impl Sync for StandardTimeSource
impl Unpin for StandardTimeSource
impl UnwindSafe for StandardTimeSource
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)