pub struct VersionedSnapshot {
pub version: u64,
pub created_at: SystemTime,
pub state: Arc<SnapshotState>,
}Expand description
A versioned point-in-time snapshot.
Produced by SnapshotManager::checkpoint. The version is a monotonic
counter assigned at checkpoint time; created_at is the wall-clock
timestamp. Stored in the bounded history chain inside SnapshotManager.
Fields§
§version: u64Monotonic version number assigned at checkpoint time (starts at 1).
created_at: SystemTimeWall-clock timestamp when this version was captured.
state: Arc<SnapshotState>The immutable adjacency data for this version.
Trait Implementations§
Source§impl Clone for VersionedSnapshot
impl Clone for VersionedSnapshot
Source§fn clone(&self) -> VersionedSnapshot
fn clone(&self) -> VersionedSnapshot
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 moreAuto Trait Implementations§
impl Freeze for VersionedSnapshot
impl RefUnwindSafe for VersionedSnapshot
impl Send for VersionedSnapshot
impl Sync for VersionedSnapshot
impl Unpin for VersionedSnapshot
impl UnsafeUnpin for VersionedSnapshot
impl UnwindSafe for VersionedSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more