pub struct UtcTimestamp;Expand description
Implementation of the CurrentTimestamp trait using UTC.
Implementations§
Trait Implementations§
Source§impl CurrentTimestamp for UtcTimestamp
impl CurrentTimestamp for UtcTimestamp
Source§fn current_timestamp(&self) -> Option<i64>
fn current_timestamp(&self) -> Option<i64>
Returns the current timestamp in nanoseconds since the Unix epoch.
Source§fn set_current_timestamp(&self, _timestamp: i64)
fn set_current_timestamp(&self, _timestamp: i64)
Sets the current timestamp in nanoseconds since the Unix epoch.
Source§impl Default for UtcTimestamp
impl Default for UtcTimestamp
Source§fn default() -> UtcTimestamp
fn default() -> UtcTimestamp
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UtcTimestamp
impl RefUnwindSafe for UtcTimestamp
impl Send for UtcTimestamp
impl Sync for UtcTimestamp
impl Unpin for UtcTimestamp
impl UnwindSafe for UtcTimestamp
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