pub struct WakeToken { /* private fields */ }Expand description
RAII lifetime token paired with a Waker created by WakeBridge::detachable_waker.
Dropping this token immediately disables the paired waker so zombie background futures belonging
to a replaced or dropped crate::RuntimeApp can never wake the surface.
Trait Implementations§
Auto Trait Implementations§
impl Forget for WakeToken
impl Freeze for WakeToken
impl Move for WakeToken
impl RefUnwindSafe for WakeToken
impl Send for WakeToken
impl Sync for WakeToken
impl Unpin for WakeToken
impl UnsafeUnpin for WakeTokenwhere
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
impl UnwindSafe for WakeToken
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