Expand description
Creation and usage of unnamed pipes.
The distinction between named and unnamed pipes is concisely expressed by their names: where named pipes have names, unnamed pipes have handles. This can both be useful or problematic, depending on the use case. Unnamed pipes work best when a child process is used. With the fork model on Unix-like systems, the handle can be transferred to the child process thanks to the cloned address space; on Windows, inheritable handles can be used.
Another way to use unnamed pipes is to use a named pipe or a Unix domain socket to establish an unnamed pipe connection. It just so happens that this crate supports all three.
Structs§
- Unnamed
Pipe Reader - A handle to the reading end of an unnamed pipe, created by the
pipefunction together with the writing end. - Unnamed
Pipe Writer - A handle to the writing end of an unnamed pipe, created by the
pipefunction together with the reading end.
Functions§
- pipe
- Creates a new pipe with the default creation settings and returns the handles to its writing end and reading end.