pub struct StdWallClock;Expand description
A zero-sized wall clock backed by SystemTime::now.
Implementations§
Source§impl StdWallClock
impl StdWallClock
Trait Implementations§
Source§impl Clone for StdWallClock
impl Clone for StdWallClock
Source§fn clone(&self) -> StdWallClock
fn clone(&self) -> StdWallClock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StdWallClock
Source§impl Debug for StdWallClock
impl Debug for StdWallClock
Source§impl Default for StdWallClock
impl Default for StdWallClock
Source§fn default() -> StdWallClock
fn default() -> StdWallClock
Returns the “default value” for a type. Read more
Source§impl WallClock for StdWallClock
impl WallClock for StdWallClock
Source§fn now(&self) -> SystemTime
fn now(&self) -> SystemTime
Auto Trait Implementations§
impl Freeze for StdWallClock
impl RefUnwindSafe for StdWallClock
impl Send for StdWallClock
impl Sync for StdWallClock
impl Unpin for StdWallClock
impl UnsafeUnpin for StdWallClock
impl UnwindSafe for StdWallClock
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