1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! This module provides a variety of different Queue implementations
//! that are useful for different use-cases
//!
//! # SPSC
//! These are queues that have one Producer and one Consumer, these are useful
//! for having two different processes/threads/tasks communicate with each
//! other
//!
//! # MPSC
//! These are queues that allow multiple Producers and one Consumer. The
//! consumers are allowed to concurrently insert elements into the Queue
//!
//! # MPMC
//! These are queuest that allow multiple Producers and multiple Consumers.
//! Each Element will only be consumed by a single Consumer and it is not known
//! which Consumer will receive which Element
/// The Error returned by the Enqueue Operation
/// The Error returned by the Dequeue Operation