Skip to main content

SeedCommandRunner

Type Alias SeedCommandRunner 

Source
pub type SeedCommandRunner = Arc<dyn Fn(&str, &Path, Duration) -> Result<String, String> + Send + Sync>;
Expand description

Runs one seed command: (command, workdir, timeout) -> combined output.

Injected rather than called directly so the failure arms (timeout, spawn failure, non-zero exit) are testable without spawning real processes. The production implementation is built by SeedCommandPolicy::new. Mirrors the BrowserOpener seam.

Aliased Typeยง

pub struct SeedCommandRunner { /* private fields */ }