pub fn pipe() -> Result<(File, File)>
A wrapper around [nix::unistd::pipe] that ensures the pipe is cleaned up.
nix::unistd::pipe
Returns two File objects: everything written to the second can be read from the first.
File