Expand description
A bounded MPSC channel implementation.
Structs§
- Channel
- An unsynchronized (
!Sync
), asynchronous and bounded channel. - Owned
Permit - 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
. - Receiver
Ref - A borrowing handle for receiving elements through a split bounded
Channel
. - Sender
- An owned handle for sending elements through a bounded split
Channel
. - Sender
Ref - 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.