Function rustix::io::pipe

pub fn pipe() -> io::Result<(OwnedFd, OwnedFd)>
Documentation

pipe()—Creates a pipe.

This function creates a pipe and returns two file descriptors, for the reading and writing ends of the pipe, respectively.

References