Skip to main content

Module reusable_oneshot

Module reusable_oneshot 

Source
Expand description

A reusable async oneshot channel.

This is a oneshot channel that can be reinitialized without needing to allocate new memory, which can be useful when you need to repeatedly initialize a new oneshot channel after a previous channel is used.

Re-exportsยง

use std::ops::Drop; ๐Ÿ”’
use std::pin::Pin; ๐Ÿ”’
use std::sync::atomic::AtomicBool; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use std::sync::Weak; ๐Ÿ”’
use std::task::Context; ๐Ÿ”’
use std::task::Poll; ๐Ÿ”’
use futures::task::AtomicWaker; ๐Ÿ”’

Structsยง

NoSender ๐Ÿ”’
The receiver does not have a sender.
Receiver ๐Ÿ”’
The receiving end of the oneshot channel.
ReceiverFuture ๐Ÿ”’
Future returned by Receiver::recv().
Sender ๐Ÿ”’
The transmitting end of the oneshot channel.
SenderDropped ๐Ÿ”’
A sender existed, but was dropped before sending a message.
SenderGuarantee ๐Ÿ”’
A guarantee that a new sender can be created.
Shared ๐Ÿ”’
State shared by a Sender and Receiver.

Enumsยง

RecvError ๐Ÿ”’
An error when attempting to receive a message.