You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubfnrun<F>(self,event_handler:F) -> !
whereF:'static + FnMut(Event<T>,&RootEventLoopWindowTarget<T>,&mutControlFlow),{unsafe{let application:*mutc_void = msg_send![class!(UIApplication), sharedApplication];assert_eq!(
application,
ptr::null_mut(),
"\ `EventLoop` cannot be `run` after a call to `UIApplicationMain` on iOS\n\ Note: `EventLoop::run` calls `UIApplicationMain` on iOS");
app_state::will_launch(Box::new(EventLoopHandler{f: event_handler,event_loop:self.window_target,// <---------- there is a attr move}));UIApplicationMain(0,
ptr::null(),
nil,NSString::alloc(nil).init_str("AppDelegate"),);unreachable!()}}
winit/src/event_loop.rs
Line 144 in e5291c9
#459
Is there necessary by design or a typo?(event_loop.run_forever() use "&mut self")
I need hold a event_loop instance in a struct, like:
What is the correct way?
The text was updated successfully, but these errors were encountered: