#async #spsc #ring #buffer #nonblocking #fixed #space #ringbuffer

dev async-ringbuffer

A nonblocking spsc ring buffer with fixed capacity

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
Download history 10/week @ 2020-11-06 11/week @ 2020-11-13 12/week @ 2020-11-20 20/week @ 2020-11-27 16/week @ 2020-12-04 9/week @ 2020-12-11 6/week @ 2020-12-18 2/week @ 2020-12-25 18/week @ 2021-01-01 10/week @ 2021-01-08 22/week @ 2021-01-15 12/week @ 2021-01-22 9/week @ 2021-01-29 17/week @ 2021-02-05 45/week @ 2021-02-12 10/week @ 2021-02-19

92 downloads per month
Used in less than 11 crates

AGPL-3.0

17KB
294 lines

Async Ringbuffer

Documentation Build Status

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.

Dependencies