pub struct Checkpoint<S> {
pub id: String,
pub state: S,
pub uuid: Uuid,
pub hash: Hash32,
pub entries_processed: usize,
pub context: FoldContext,
pub fold_version: usize,
pub created_at: DateTime<Utc>,
}Expand description
Generic checkpoint envelope wrapping an arbitrary fold state snapshot.
Fields§
§id: StringHuman-readable checkpoint identifier (e.g. "hnsw_idx:ckpt-1").
state: SThe snapshot state captured at this checkpoint.
uuid: UuidUnique identifier for this checkpoint instance.
hash: Hash32BLAKE3 content hash of the state; verified on load.
entries_processed: usizeNumber of entries processed when this checkpoint was taken.
context: FoldContextFold context at checkpoint time.
fold_version: usizeMonotonically increasing fold schema version.
created_at: DateTime<Utc>Wall-clock time when this checkpoint was created.
Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for Checkpoint<S>
impl<S: Clone> Clone for Checkpoint<S>
Source§fn clone(&self) -> Checkpoint<S>
fn clone(&self) -> Checkpoint<S>
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 moreSource§impl<S: Debug> Debug for Checkpoint<S>
impl<S: Debug> Debug for Checkpoint<S>
Source§impl<'de, S> Deserialize<'de> for Checkpoint<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Checkpoint<S>where
S: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<S> Freeze for Checkpoint<S>where
S: Freeze,
impl<S> RefUnwindSafe for Checkpoint<S>where
S: RefUnwindSafe,
impl<S> Send for Checkpoint<S>where
S: Send,
impl<S> Sync for Checkpoint<S>where
S: Sync,
impl<S> Unpin for Checkpoint<S>where
S: Unpin,
impl<S> UnsafeUnpin for Checkpoint<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Checkpoint<S>where
S: 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