pub struct SystemClock;Expand description
Production clock backed by web_time::SystemTime (std::time on native).
Implementations§
Source§impl SystemClock
impl SystemClock
Trait Implementations§
Source§impl Clock for SystemClock
impl Clock for SystemClock
Source§fn now_unix_secs(&self) -> u64
fn now_unix_secs(&self) -> u64
Whole seconds since the Unix epoch.
Source§fn now_unix_secs_f64(&self) -> f64
fn now_unix_secs_f64(&self) -> f64
Fractional seconds since the Unix epoch, retaining sub-second precision
for callers that need it (e.g.,
cached_at in import flows that route
through stream events).Source§impl Clone for SystemClock
impl Clone for SystemClock
impl Copy for SystemClock
Source§impl Debug for SystemClock
impl Debug for SystemClock
Auto Trait Implementations§
impl Freeze for SystemClock
impl RefUnwindSafe for SystemClock
impl Send for SystemClock
impl Sync for SystemClock
impl Unpin for SystemClock
impl UnsafeUnpin for SystemClock
impl UnwindSafe for SystemClock
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