Skip to main content

Module process

Module process 

Source
Expand description

ProcessPromise (a prepared zx command) and RunningProcess (a spawned one), plus the runner that drives the child processes.

Like zx, a failed command is reported by handing back its full ProcessOutput as the error value; keeping it unboxed lets callers match on Err(out) and read out.exit_code directly.

Structs§

ProcessPromise
A prepared command (zx ProcessPromise). Nothing runs until it is awaited, run, run_sync or spawn is called.
RunningProcess
A command started with ProcessPromise::spawn.

Enums§

PipeFrom
Which stream of a source command feeds a pipe.

Type Aliases§

ZxResult
Result of awaiting a command: Ok on success (or with nothrow), Err with the same ProcessOutput otherwise.