Skip to main content

run_with_input

Function run_with_input 

Source
pub fn run_with_input(
    endpoint: &RemoteEndpoint,
    command: &RemoteCommand,
    token: &CancelToken,
    chunks: &[&[u8]],
) -> Result<CommandOutput, RemoteCommandError>
Expand description

Worker-only framed input. Chunks are borrowed; no whole-rope copy is needed. The stdin lease remains open after the final chunk until the program exits.