Function sluice::pipe::pipe[][src]

pub fn pipe() -> (PipeReader, PipeWriter)
Expand description

Creates a new asynchronous pipe with the default configuration.

The default implementation guarantees that when writing a slice of bytes, either the entire slice is written at once or not at all. Slices will never be partially written.