Module oneshot

Source
Expand description

An unsync oneshot channel implementation.

Structs§

OneshotChannel
An unsynchronized (!Sync), asynchronous oneshot channel.
Receiver
An owning handle for receiving elements through a split OneshotChannel.
ReceiverRef
A borrowing handle for receiving elements through a split OneshotChannel.
RecvError
An error which can occur when receiving on a closed channel.
Sender
An owning handle for sending an element through a split OneshotChannel.
SenderRef
A borrowing handle for sending an element through a split OneshotChannel.

Functions§

channel
Creates a new oneshot channel.