pub struct Timestamped<A> {
pub value: A,
pub timestamp: Instant,
}Fields§
§value: A§timestamp: InstantImplementations§
Source§impl<A> Timestamped<A>
impl<A> Timestamped<A>
pub fn new(value: A) -> Timestamped<A>
Trait Implementations§
Source§impl<A: Clone> Clone for Timestamped<A>
impl<A: Clone> Clone for Timestamped<A>
Source§fn clone(&self) -> Timestamped<A>
fn clone(&self) -> Timestamped<A>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<A: Copy> Copy for Timestamped<A>
Auto Trait Implementations§
impl<A> Freeze for Timestamped<A>where
A: Freeze,
impl<A> RefUnwindSafe for Timestamped<A>where
A: RefUnwindSafe,
impl<A> Send for Timestamped<A>where
A: Send,
impl<A> Sync for Timestamped<A>where
A: Sync,
impl<A> Unpin for Timestamped<A>where
A: Unpin,
impl<A> UnsafeUnpin for Timestamped<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Timestamped<A>where
A: UnwindSafe,
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