pub async fn try_restore_session_to_state<R: Runtime>( app_handle: &AppHandle<R>, ) -> Result<Option<Client>>