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.
- Receiver
Future ๐ - Future returned by
Receiver::recv(). - Sender ๐
- The transmitting end of the oneshot channel.
- Sender
Dropped ๐ - A sender existed, but was dropped before sending a message.
- Sender
Guarantee ๐ - A guarantee that a new sender can be created.
- Shared ๐
- State shared by a
SenderandReceiver.
Enumsยง
- Recv
Error ๐ - An error when attempting to receive a message.