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.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for OneshotChannel<T>
impl<T> Send for OneshotChannel<T>where T: Send,
impl<T> !Sync for OneshotChannel<T>
impl<T> Unpin for OneshotChannel<T>where T: Unpin,
impl<T> UnwindSafe for OneshotChannel<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more