pub struct RealTime;
Expand description
A settable system-wide clock that measures real (i.e., wall-clock) time.
Setting this clock requires appropriate privileges. This clock is affected by discontinuous jumps in the system time (e.g., if the system administrator manually changes the clock), and by frequency adjustments performed by NTP and similar applications via adjtime(3), adjtimex(2), clock_adjtime(2), and ntp_adjtime(3). This clock normally counts the number of seconds since 1970-01-01 00:00:00 Coordinated Universal Time (UTC) except that it ignores leap seconds; near a leap second it may be adjusted by leap second smearing to stay roughly in sync with UTC. Leap second smearing applies frequency adjustments to the clock to speed up or slow down the clock to account for the leap second without discontinuities in the clock. If leap second smearing is not applied, the clock will experience discontinuity around leap second adjustment.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RealTime
impl RefUnwindSafe for RealTime
impl Send for RealTime
impl Sync for RealTime
impl Unpin for RealTime
impl UnwindSafe for RealTime
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
slot
. Read more