Module tokio::sync::mpsc::bounded

source ·

Structs

  • Owned permit to send one value into the channel.
  • Permits to send one value into the channel.
  • An Iterator of Permit that can be used to hold n slots in the channel.
  • Receives values from the associated Sender.
  • Semaphore 🔒
    Channel semaphore is a tuple of the semaphore implementation and a usize representing the channel bound.
  • Sends values to the associated Receiver.
  • A sender that does not prevent the channel from being closed.

Functions

  • Creates a bounded mpsc channel for communicating between asynchronous tasks with backpressure.