Skip to main content

Module oneshot_broadcast

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Β§

AllReceiversDropped
All the receivers were dropped, so the channel is closed.
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.