#[repr(transparent)]pub struct TakeWeak<T>(pub Weak<AsyncCell<T>>);
Expand description
A similar future to Take, but resolves to None when the cell is dropped. Can be constructed directly or with AsyncCell::take_weak.
Tuple Fields§
§0: Weak<AsyncCell<T>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TakeWeak<T>
impl<T> RefUnwindSafe for TakeWeak<T>
impl<T> Send for TakeWeak<T>where
T: Send,
impl<T> Sync for TakeWeak<T>where
T: Send,
impl<T> Unpin for TakeWeak<T>
impl<T> UnwindSafe for TakeWeak<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more