scroll-ring

Structures for MPSC text streaming

The goal of the data structure provided by this crate is to cater for the needs of stdout-style text streaming over a lossy network, which results in thee requirements:

Overflowing data may not even hit the buffer, for example when a slice larger than the buffer is written, or when (large amounts of) data is to be written while a read happens, or while a write from a slow process happens -- either way, the written bytes are counted, they're just not available for reading (just as they would have been if the reader were merely too slow).

This is the minimal implementation that solely on "overflow as little as possible" to get a waaaay easier implementation. Better options are:

License: MIT OR Apache-2.0