ckb_channel

Module oneshot

Source
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 (or sync_channel) type. This half can only be owned by one thread.
RecvError
An error returned from the recv function on a Receiver.
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.