Struct conch_runtime::io::Pipe [] [src]

pub struct Pipe {
    pub reader: FileDesc,
    pub writer: FileDesc,
}

A wrapper for a reader and writer OS pipe pair.

Fields

The reader end of the pipe. Anything written to the writer end can be read here.

The writer end of the pipe. Anything written here can be read from the reader end.

Methods

impl Pipe
[src]

[src]

Creates and returns a new pipe pair. On Unix systems, both file descriptors of the pipe will have their CLOEXEC flags set, however, note that the setting of the flags is nonatomic on BSD systems.

Trait Implementations

impl Debug for Pipe
[src]

[src]

Formats the value using the given formatter.