pub fn pair() -> Result<(Stream, Stream)>Expand description
Two connected ends, both in this process: one is handed to another process or thread, as a
connection made without a listener. A Unix stream pair; on Windows a pipe only this process
joined ([link::pair]), which reads as a byte stream as a socket does.
§Errors
The system’s error making the pair.