pub struct LifecycleHandle { /* private fields */ }Expand description
RAII handle that owns a component id and runs destroy+cleanup on drop.
The renderer creates one per mounted app and keeps it alive for the
duration of the event loop so on_unmounted/before_destroy fire even when
the loop exits via Drop rather than an explicit CloseRequested.
Implementations§
Trait Implementations§
Source§impl Default for LifecycleHandle
impl Default for LifecycleHandle
Source§impl Drop for LifecycleHandle
impl Drop for LifecycleHandle
Auto Trait Implementations§
impl !Freeze for LifecycleHandle
impl !RefUnwindSafe for LifecycleHandle
impl !Sync for LifecycleHandle
impl Send for LifecycleHandle
impl Unpin for LifecycleHandle
impl UnsafeUnpin for LifecycleHandle
impl UnwindSafe for LifecycleHandle
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