fn decode_legacy_engine_state_snapshot( payload: &[u8], path: &Path, ) -> Result<(LegacyEngineStateSnapshot, &'static str), String>