pub struct WeakAppContext { /* private fields */ }Expand description
A weak handle to a booted app (AppContext::downgrade): it does not
keep the app alive, and upgrade returns
None once the app is dropped.
Implementations§
Source§impl WeakAppContext
impl WeakAppContext
Sourcepub fn upgrade(&self) -> Option<AppContext>
pub fn upgrade(&self) -> Option<AppContext>
The app, if it is still alive.
Trait Implementations§
Source§impl Clone for WeakAppContext
impl Clone for WeakAppContext
Auto Trait Implementations§
impl !RefUnwindSafe for WeakAppContext
impl !UnwindSafe for WeakAppContext
impl Forget for WeakAppContext
impl Freeze for WeakAppContext
impl Send for WeakAppContext
impl Sync for WeakAppContext
impl Unpin for WeakAppContext
impl UnsafeUnpin for WeakAppContext
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