Module async_unsync::bounded

source ·
Expand description

A bounded MPSC channel implementation.

Structs

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

Functions

  • Creates a new bounded channel with the given capacity.
  • Returns a new bounded channel with pre-queued elements.