Skip to main content

exchange

Function exchange 

Source
pub fn exchange(
    component: Component,
    binary: &Path,
    args: &[OsString],
    operation: &str,
    scope: &Operation,
) -> Result<Value, Error>
Expand description

Receive a machine result while the component owns interactive input and live diagnostics.

Native work retains its owner’s duration policy. Cancellation forwards the exact Unix signal to the direct child and gives its rollback thirty seconds before the final kill/reap fallback.

§Errors

Rejects cancellation, invalid replies, nonzero exits, oversized stdout and process failures.