Struct fd::Pipe [] [src]

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

A thread-safe pipe(2) interface.

Create a reader and a writer File for each part of the pipe.

Fields

reader
writer

Methods

impl Pipe

fn new() -> Result<Pipe>