pub fn make_pipe() -> Result<(File, File)>
Create a pipe.
This is a safe wrapper over libc::pipe or winapi::um::namedpipeapi::CreatePipe, depending on the operating system.
libc::pipe
winapi::um::namedpipeapi::CreatePipe