A FIFO pipe.
Fields
- 
fd: FileDescriptor
Methods
impl Pipe { ... }
- 
Create an anonymous pipe pair. 
- 
fn from_fd(fd: FileDescriptor) -> PipeCreate a Pipeobject from a raw file descriptor.
- 
fn as_fd(self: &Pipe) -> FileDescriptor
- 
Close the pipe. 
Mixins
impl Pipe { ... }
- 
mixin FdReadWrite<Pipe>
- 
Reads from the stream into a provided buffer. If successful, returns the number of bytes read. This may be less than the size of the provided buffer. 
- 
Write the buffer to the stream. Returns the number of bytes written. This may be less than the size of the buffer. See also write_all, which can be used to write the entire buffer. 
- 
- 
Fills the provided buffer by reading from the stream. If stream had less bytes available than the size of the buffer, this method will return an Error::eof().
- 
Reads the entire stream into a StringBuf.If successful, returns the number of bytes that were read. 
- 
- 
Writes all the bytes in the buffer to the stream. If EOF is reached, returns Error::eof().