10 unstable releases (4 breaking)
0.5.5 | Dec 22, 2019 |
---|---|
0.5.4 | Dec 22, 2019 |
0.5.2 | Nov 22, 2019 |
0.5.1 | May 18, 2019 |
0.1.0 | Nov 22, 2017 |
#1271 in Asynchronous
45 downloads per month
Used in 11 crates
17KB
294 lines
Async Ringbuffer
An asynchronous, fixed-capacity single-reader single-writer ring buffer that notifies the reader onces data becomes available, and notifies the writer once new space for data becomes available. This is done via the AsyncRead and AsyncWrite traits.
This crate is to AsyncRead
and AsyncWrite
what futures::unsync::spsc
is to Stream
and Sink
(except that futures::unsync::spsc
doesn't currently exist).
lib.rs
:
An asynchronous, fixed-capacity single-reader single-writer ring buffer that notifies the reader onces data becomes available, and notifies the writer once new space for data becomes available. This is done via the AsyncRead and AsyncWrite traits.