Skip to main content

SerializableSnapshotCapture

Type Alias SerializableSnapshotCapture 

Source
pub type SerializableSnapshotCapture<'a> = dyn FnMut(&mut dyn FnMut() -> VersionResult<()>) -> VersionResult<()> + 'a;
Expand description

Scope one candidate snapshot capture together with the caller’s publication baseline. Invoke the supplied operation exactly once, without executing application work. Common storage may request another candidate before returning a safe deferrable snapshot; each call must release its guards before returning so overlapping writers can finish during the wait. An already admitted session retains its original participant without invoking this scope.