Expand description
Abstraction for Windows subprocesses: a Future<ExitStatus> with a named pipe set up from the
subprocess back to the parent.
Structs§
- Exit
Future - SubProcess
Piped - A sub process with a managed named pipe in addition to stdout and stderr.
Enums§
- PipeId
- An identifier for a pipe. On Unix a RawFd (a c_int) is sufficient. On Windows both the file descriptor (as an isize) and a duplicated File handle is required. The duplicated file handle is created with inheritance permissions which is required for a subprocess to use the pipe. The duplicate file handle must be kept in scope until the subprocess is started, and it must then be dropped so that the child process has the only reference to it. This enables the child process to close the pipe (with an EOF).
Functions§
- named_
pipe - with_
pipe - Run the
commandas a subprocess with an additional named pipe set up from the subprocess back to this process.