๐ฌ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.
Re-exportsยง
use crate::sync::mpmc;๐Experimental use crate::sync::mpsc::RecvError;๐use crate::sync::mpsc::SendError;๐use crate::time::Duration;๐use crate::time::Instant;๐use crate::error;๐use crate::fmt;๐
Structsยง
- Receiver
Experimental - The receiving half of a oneshot channel.
- Sender
Experimental - The sending half of a oneshot channel.
Enumsยง
- Recv
Timeout Error Experimental - An error returned from the
recv_timeoutorrecv_deadlinemethods. - TryRecv
Error Experimental - An error returned from the
try_recvmethod.
Functionsยง
- channel
Experimental - Creates a new oneshot channel, returning the sender/receiver halves.