Skip to main content

scc_engine/
snapshots.rs

1//! Engine snapshots: get + diff (typed values).
2
3// trace:exempt reason=internal-detail
4pub fn get(store: &scc_store::Store, id: &str) -> crate::Result<Option<scc_store::snapshot::ContextSnapshot>> {
5    Ok(store.load_snapshot(id)?)
6}
7
8// trace:exempt reason=internal-detail
9pub fn diff(store: &scc_store::Store, id: &str) -> crate::Result<Option<scc_store::snapshot::SnapshotDiff>> {
10    Ok(store.diff_snapshot(id)?)
11}