Skip to main content

Module mpsc

Module mpsc 

Source
Available on crate feature tokio only.
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 Sender::send.
Sender
Send half of am unsync MPSC.

Enums§

TrySendError
Error returned by Sender::try_send.

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.