Skip to main content

read_snapshot

Function read_snapshot 

Source
pub fn read_snapshot(path: &Path) -> Result<Option<EngineStateSnapshot>, String>
Expand description

Read a snapshot from disk with CRC32 integrity verification.

Returns Ok(None) if the file does not exist. Returns Err if the file exists but is corrupt or has an unsupported version.