pub struct Timestamp(_);
Expand description
A moment in time in UTC.
Implementations
sourceimpl Timestamp
impl Timestamp
sourcepub fn from_nanos(t: u64) -> Self
pub fn from_nanos(t: u64) -> Self
Create a Timestamp from the number of nanoseconds.
Suitable for CLOCK_REALTIME clock sources.
Trait Implementations
impl Eq for Timestamp
impl StructuralEq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more