Expand description
Byte-based snapshot API: hydrate an engine from sealed .mem
archive bytes, and export a mem’s current state back to archive
bytes.
Bridge consumers and future browser-WASM replicas consume
these two methods to ship the current state of a mem over HTTP
without materialising a temp file. Both methods go through the
existing validator + storage stack — same wire format, same caps,
same refusal envelopes — but expose a single-call API that hides
ArchiveBackend / Mount from the caller.
Symmetric contract: bytes produced by Engine::export_mem_to_bytes
hydrate cleanly into another Engine via
Engine::from_archive_bytes, and the resulting engine answers the
read surface (memstead_overview, memstead_search, memstead_entity,
memstead_health) with results indistinguishable from the source for
the exported mem. Mutation methods refuse via the existing
sealed-backend / read-only-mount envelope — no new error categories
enter the surface here.
Enums§
- From
Archive Bytes Error - Errors surfaced by
Engine::from_archive_bytes.