pub fn with_owner<R>( app: &AppHandle, f: impl FnOnce(&mut dyn History) -> R, ) -> Option<R>
Runs f on the owner: the host’s, else a StoreHistory over the host’s store. None while the host dispatches a command.
f
StoreHistory
None