pub struct SendOnce<T> { /* private fields */ }Expand description
Created by send_once() and used to dispatch a single value
to an associated ReceiveOnce instance.
Implementations§
Source§impl<T> SendOnce<T>
impl<T> SendOnce<T>
Sourcepub fn is_canceled(&self) -> bool
pub fn is_canceled(&self) -> bool
Check if the receiver has already been dropped.
Sourcepub fn track_send(self, value: T) -> TrackSend<'static, T> ⓘ
pub fn track_send(self, value: T) -> TrackSend<'static, T> ⓘ
Load a value to be sent, returning a Future which resolves when
the value is received or the ReceiveOnce is dropped.
Trait Implementations§
impl<T: Send> Send for SendOnce<T>
impl<T: Send> Sync for SendOnce<T>
Auto Trait Implementations§
impl<T> Freeze for SendOnce<T>
impl<T> !RefUnwindSafe for SendOnce<T>
impl<T> Unpin for SendOnce<T>where
T: Unpin,
impl<T> !UnwindSafe for SendOnce<T>
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