Function stream

Source
pub fn stream() -> (Reader, Writer)
Expand description

Creates a unidirectional stream of bytes.

The Reader and Writer share an expanding ring buffer. This allows sending bytes between tasks with minimal extra allocations or copies.