Module oneshot_broadcast

Source
Expand description

A oneshot broadcast channel.

The motivation for this channel type was to allow multiple receivers to either wait for something to finish, or to have an inexpensive method of checking if it has finished.

See channel().

Structs§

BorrowedReceiverFuture 🔒
The future from Receiver::borrowed.
MessageAlreadySet 🔒
The message has already been set, and we can’t set it again.
Receiver 🔒
A oneshot broadcast receiver.
ReceiverFuture 🔒
The future from Receiver::into_future.
Sender 🔒
A oneshot broadcast sender.
SenderDropped 🔒
The sender was dropped, so the channel is closed.
Shared 🔒
State shared between the sender and receivers. Correctness:
WakerKey 🔒
WakersAlreadyWoken 🔒
The wakers have already been woken.

Functions§

channel 🔒
Create a new oneshot broadcast channel.
receiver_fut_drop 🔒
The shared drop implementation for receiver futures.
receiver_fut_poll 🔒
The shared poll implementation for receiver futures.