Settings
Help

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

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.