Skip to main content

Module oneshot

Module oneshot 

Source
Expand description

An asynchronous, single-message channel for no_std environments.

Structs§

Channel
A handle to a oneshot channel that owns the shared state.
Receiver
The receiving half of a oneshot channel.
RecvError
An error returned by Receiver::recv if the Sender has been dropped.
SendError
An error returned by Sender::send if the Receiver has been dropped.
Sender
The sending half of a oneshot channel.

Functions§

channel
Creates a new oneshot channel, returning the owning Channel handle.