pub trait HookUnmount { // Provided method fn unmount(self: Pin<&mut Self>) { ... } }
Defines how to cleanup a hook.
Consider this as a re-entrant and pinned version of Drop. Cleanups can be run in unmount.
Drop
unmount
After unmount, the hook might still be used or updated.