[][src]Module tokio::sync::oneshot

This is supported on feature="sync" and feature="sync" only.

A channel for sending a single message between asynchronous tasks.

Modules

errorfeature="sync" and feature="sync"

Oneshot error types

Structs

Receiverfeature="sync" and feature="sync"

Receive a value from the associated Sender.

Senderfeature="sync" and feature="sync"

Sends a value to the associated Receiver.

Functions

channelfeature="sync" and feature="sync"

Create a new one-shot channel for sending single values across asynchronous tasks.