🔬This is a nightly-only experimental API. (
oneshot_channel #143674)Expand description
A single-producer, single-consumer (oneshot) channel.
This is an experimental module, so the API will likely change.
Structs§
- Receiver
Experimental - The receiving half of a oneshot channel.
- Sender
Experimental - The sending half of a oneshot channel.
Enums§
- Recv
Timeout Error Experimental - An error returned from the
recv_timeoutorrecv_deadlinemethods. - TryRecv
Error Experimental - An error returned from the
try_recvmethod.
Functions§
- channel
Experimental - Creates a new oneshot channel, returning the sender/receiver halves.