Skip to main content

capture_input

Function capture_input 

Source
pub fn capture_input(
    component: Component,
    command: &mut Command,
    input: Vec<u8>,
    policy: QueryPolicy,
    cancelled: &AtomicBool,
    closed: &AtomicBool,
) -> Result<Output, Error>
Expand description

Send one owned request while draining both child streams under timeout and RPC cancellation.

ยงErrors

Returns process/pipe failures, cancellation and bounded-output failures; the exact child is reaped.