Skip to main content

spawn

Function spawn 

Source
pub fn spawn(spool_dir: PathBuf)
Expand description

Spawn the watchdog in the background. Idempotent — calling it more than once in the same process is a no-op.

spool_dir is the crash-report spool directory. The synthetic report is written there using the same JSON shape as panic-derived reports so the existing flusher picks it up on next startup.