Skip to main content

Module capture

Module capture 

Source
Expand description

High-level capture / restore one-shot helpers.

Drives a CachePager through pause โ†’ walk-pages โ†’ serialize โ†’ resume, and the inverse on restore. Adapter authors normally call these instead of touching crate::serialize directly.

Functionsยง

capture_cache
Capture the entire live state of pager into the supplied blobs store.
restore_cache
Restore the cache described by manifest_digest into pager. The pager must be empty (no occupied pages) and the same engine config as the one that produced the snapshot. Mismatches surface as pf_core::Error::Integrity.