Skip to main content

install_guard

Function install_guard 

Source
pub fn install_guard(
    stage_root: &Path,
    workspace_root: &Path,
    guard_exe: &Path,
    ttl: Option<Duration>,
) -> Result<PathBuf>
Expand description

Arm the write guard for an eval run. Returns the marker path. The guard is a no-op until this marker exists and is unexpired, so the hook is inert outside an active run. guard_exe is the path the hook invokes (normally std::env::current_exe()); ttl overrides the default 6h lifetime.