MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / get_cache_snapshots

Method get_cache_snapshots

crates/virtual-machine/src/virtual_machine.rs:285–293  ·  view source on GitHub ↗

Full snapshots including per-line state - only call when the cache view renders.

(
        &self,
    )

Source from the content-addressed store, hash-verified

283 mut step: impl FnMut() -> Result<StepOutcome, VmError>,
284) -> (u64, RunOutcome) {
285 for steps in 1..=max_steps {
286 match step() {
287 Ok(StepOutcome::Continue) => {}
288 Ok(StepOutcome::Halted(code)) => return (steps, RunOutcome::Halted(code)),
289 Err(error) => return (steps, RunOutcome::Fault(error)),
290 }
291 }
292 (max_steps, RunOutcome::TimedOut)
293}
294
295// --- Peripheral / debug accessors ---
296

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected