pub type LifecycleFn = Box<dyn FnMut(&AppHandle, &Lifecycle)>;
A lifecycle handler.
pub struct LifecycleFn(/* private fields */);