Module mpsc

Source
Expand description

Unsync single-producer single-consumer channel (i.e. a single-threaded queue with async hooks).

Structs§

Receiver
Receiving half of an unsync MPSC.
SendError
Error returned by the Sender.
Sender
Send half of am unsync MPSC.

Enums§

TrySendError
This enumeration is the list of the possible error outcomes for the try_send method.

Functions§

bounded
Create a bounded unsync MPSC channel. Panics if capacity is zero.
channel
Create an unsync MPSC channel, either bounded (if capacity is Some) or unbounded (if capacity is None).
unbounded
Create an unbounded unsync MPSC channel.