Expand description
A one-shot channel is used for sending a single message between asynchronous tasks.
Structs§
- Receiver
- The receiving half of Rust’s
channel
(orsync_channel
) type. This half can only be owned by one thread. - Recv
Error - An error returned from the
recv
function on aReceiver
. - Sender
- The sending-half of Rust’s synchronous
sync_channel
type.
Functions§
- channel
- Create a new one-shot channel for sending single values across asynchronous tasks.