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

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

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.