Enum

std::process::Stdio!

source
exposed enum Stdio! {
    Inherit,
    Null,
    Pipe,
    File(File!),
}

Where a child's standard input, output or error comes from or goes: this process's own stream (Inherit, what a Command! starts with), /dev/null (Null), a new pipe whose other end the Child! holds (Pipe), or a file this process opened (File), which spawn closes once the child has its own copy.

Methods

method codesource

fn code(&self) -> i32 { ... }

What the C runtime's spawn reads for the stream: the descriptor to copy, or a negative code for the other ways (process.c's KUR_STREAM_*). Used by Command!::spawn; not meant for direct use.

method closesource

fn close(self) { ... }

Closes the file of a File, which the child has a copy of by now; nothing for the others. Used by Command!::spawn; not meant for direct use.