std::sync::oneshot - Rust
Description: A single-producer, single-consumer (oneshot) channel.

## Module oneshot

Source
🔬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§

ReceiverExperimental
  The receiving half of a oneshot channel.
SenderExperimental
  The sending half of a oneshot channel.

## Enums§

RecvTimeoutErrorExperimental
  An error returned from the `recv_timeout` or `recv_deadline` methods.
TryRecvErrorExperimental
  An error returned from the `try_recv` method.

## Functions§

channelExperimental
  Creates a new oneshot channel, returning the sender/receiver halves.