Expand description

Single-producer single-consumer queue

The SPSC queue allows for pushing from one thread and popping from another. Each end of the queue can only be owned and accessed from a single thread. In other words, both the SPSCProducer and SPSCConsumer are Send and !Sync.

Structs

Consumer end of the queue. Implements the trait Consumer<T>.

Producer end of the queue. Implements the trait Producer<T>.

Functions

Creates a new SPSC queue