Module channel

Source
Expand description

The channel interface.

Structsยง

IntoIter
A blocking iterator over messages in a channel.
Iter
A blocking iterator over messages in a channel.
Receiver
The receiving side of a channel.
Sender
The sending side of a channel.
TryIter
A non-blocking iterator over messages in a channel.

Enumsยง

ReceiverFlavor ๐Ÿ”’
Receiver flavors.
SenderFlavor ๐Ÿ”’
Sender flavors.

Functionsยง

after
Creates a receiver that delivers a message after a certain duration of time.
at
Creates a receiver that delivers a message at a certain instant in time.
bounded
Creates a channel of bounded capacity.
never
Creates a receiver that never delivers messages.
read ๐Ÿ”’ โš 
Reads a message from the channel.
tick
Creates a receiver that delivers messages periodically.
unbounded
Creates a channel of unbounded capacity.
write ๐Ÿ”’ โš 
Writes a message into the channel.