[][src]Crate 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.

Structs

Duplex

An AsyncRead + AsyncWrite stream, which reads from one ringbuffer, and writes to another.

Reader

Read access to a nonblocking ring buffer with fixed capacity.

Writer

Write access to a nonblocking ring buffer with fixed capacity.

Functions

ring_buffer

Creates a new RingBuffer with the given capacity, and returns a handle for writing and a handle for reading.