Module std::sync::mpsc_queue
A mostly lock-free multi-producer, single consumer queue.
This module contains an implementation of a concurrent MPSC queue. This queue can be used to share data between tasks, and is also used as the building block of channels in rust.
Note that the current implementation of this queue has a caveat of the pop
method, and see the method for more information about it. Due to this
caveat, this queue may not be appropriate for all use-cases.
Structs
Queue | The multi-producer single-consumer structure. This is not cloneable, but it may be safely shared so long as it is guaranteed that there is only one popper at a time (many pushers are allowed). |
Enums
PopResult | A result of the |