Module extra::flatpipes::pod

Constructors for flat pipes that send POD types using memcpy.

Safety Note

This module is currently unsafe because it uses Clone + Send as a type parameter bounds meaning POD (plain old data), but Clone + Send and POD are not equivalent.

Functions

pipe_chan

Create a FlatChan from a Chan<~[u8]>

pipe_port

Create a FlatPort from a Port<~[u8]>

pipe_stream

Create a pair of FlatChan and FlatPort, backed by pipes

reader_port

Create a FlatPort from a Reader

writer_chan

Create a FlatChan from a Writer

Type Definitions

PipeChan
PipePort
ReaderPort
WriterChan