Module bounded

Source
Expand description

A bounded MPSC channel implementation.

Structs§

Channel
An unsynchronized (!Sync), asynchronous and bounded channel.
OwnedPermit
An owned permit to send one value into the channel.
Permit
A borrowing permit to send one value into the channel.
Receiver
An owning handle for receiving elements through a split bounded Channel.
ReceiverRef
A borrowing handle for receiving elements through a split bounded Channel.
Sender
An owned handle for sending elements through a bounded split Channel.
SenderRef
A borrowing handle for sending elements through a bounded split Channel.

Functions§

channel
Creates a new bounded channel with the given capacity.
channel_from_iter
Returns a new bounded channel with pre-queued items.