Struct async_unsync::oneshot::OneshotChannel
source · pub struct OneshotChannel<T>(_);
Expand description
An unsynchronized (!Sync
), asynchronous oneshot channel.
This is useful for asynchronously handing a single value from one future to another.
Implementations§
source§impl<T> OneshotChannel<T>
impl<T> OneshotChannel<T>
sourcepub fn split(&mut self) -> (SenderRef<'_, T>, ReceiverRef<'_, T>)
pub fn split(&mut self) -> (SenderRef<'_, T>, ReceiverRef<'_, T>)
Splits the channel into borrowing SenderRef
and ReceiverRef
handles.