pub struct Time(/* private fields */);Expand description
Representation of system time as duration since UNIX epoch with cross-platform nanosecond precision.
Implementations§
Source§impl Time
impl Time
Sourcepub fn as_nanos_since_unix_epoch(&self) -> u64
pub fn as_nanos_since_unix_epoch(&self) -> u64
Number of nanoseconds since UNIX EPOCH.
pub const fn from_nanos_since_unix_epoch(nanos: u64) -> Self
Trait Implementations§
impl Copy for Time
Source§impl From<SystemTime> for Time
impl From<SystemTime> for Time
Source§fn from(time: SystemTime) -> Self
fn from(time: SystemTime) -> Self
Converts to this type from the input type.
Source§impl PartialOrd for Time
impl PartialOrd for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnsafeUnpin for Time
impl UnwindSafe for Time
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