struct
Owner
pub struct Owner {
/* private fields */
}Owns the effects created inside [Owner::run], keeping them alive until [Owner::dispose]. Components use an owner to tie effects to their lifetime.
Methods
run
pub fn run<R>(&self, f: impl FnOnce() -> R) -> RRun f with this owner adopting every effect created inside it.
dispose
pub fn dispose(&self)Dispose every owned effect and run the cleanups registered with on_cleanup.