pub struct Snapshot<T: Clone> {
pub data: T,
pub version: u64,
pub timestamp: Instant,
}Fields§
§data: T§version: u64§timestamp: InstantTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Snapshot<T>where
T: Freeze,
impl<T> RefUnwindSafe for Snapshot<T>where
T: RefUnwindSafe,
impl<T> Send for Snapshot<T>where
T: Send,
impl<T> Sync for Snapshot<T>where
T: Sync,
impl<T> Unpin for Snapshot<T>where
T: Unpin,
impl<T> UnsafeUnpin for Snapshot<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Snapshot<T>where
T: 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