pub struct Timestamp(/* private fields */);Expand description
A timestamp backed by std::time::SystemTime.
Implementations§
Source§impl Timestamp
impl Timestamp
Sourcepub const fn new(value: SystemTime) -> Timestamp
pub const fn new(value: SystemTime) -> Timestamp
Creates a timestamp.
Sourcepub const fn system_time(self) -> SystemTime
pub const fn system_time(self) -> SystemTime
Returns the stored system time.
Trait Implementations§
impl Copy for Timestamp
impl Eq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnsafeUnpin for Timestamp
impl UnwindSafe for Timestamp
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