Expand description
Channels
Multi-producer, multi-consumer queues, used for message-based communication. Can provide a lightweight inter-task synchronisation mechanism, at the cost of some extra memory.
Structs§
- The receiving side of a channel.
- A future returned by
Receiver::recv()
. - An error returned from
Receiver::recv()
. - A future returned by
Sender::send()
. - An error returned from
Sender::send()
. - The sending side of a channel.
- A
Receiver
that prevents the channel from not being closed. - A
Sender
that prevents the channel from not being closed.
Enums§
- An error returned from
Receiver::try_recv()
. - An error returned from
Sender::try_send()
.
Functions§
- Creates a bounded channel.
- Creates an unbounded channel.