Expand description
Bounded multi-producer, single-consumer channel.
Create a channel with bounded. The BoundedSender can be cloned for multiple producers;
there is exactly one Receiver. Sending blocks when the channel is full, providing
natural backpressure.
Structs§
- Bounded
Sender - Sending half of a bounded channel. Cloneable for multiple producers.
- Receiver
- Receiving half of a bounded channel.
- Recv
Error - Error returned by
Receiver::recvwhen all senders have been dropped. - Send
Error - Error returned by
BoundedSender::sendwhen the receiver has been dropped.
Enums§
- TryRecv
Error - Error returned by
Receiver::try_recv. - TrySend
Error - Error returned by
BoundedSender::try_send.
Functions§
- bounded
- Creates a bounded channel with the given capacity.