Enum winit::platform_impl::platform::EventLoop
source · pub enum EventLoop<T: 'static> {
Wayland(Box<EventLoop<T>>),
X(EventLoop<T>),
}
Variants§
Implementations§
source§impl<T: 'static> EventLoop<T>
impl<T: 'static> EventLoop<T>
pub(crate) fn new(attributes: &PlatformSpecificEventLoopAttributes) -> Self
fn new_wayland_any_thread() -> Result<EventLoop<T>, Box<dyn Error>>
fn new_x11_any_thread() -> Result<EventLoop<T>, XNotSupported>
pub fn create_proxy(&self) -> EventLoopProxy<T>
pub fn run_return<F>(&mut self, callback: F) -> i32where F: FnMut(Event<'_, T>, &RootELW<T>, &mut ControlFlow),
pub fn run<F>(self, callback: F) -> !where F: 'static + FnMut(Event<'_, T>, &RootELW<T>, &mut ControlFlow),
pub fn window_target(&self) -> &EventLoopWindowTarget<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for EventLoop<T>
impl<T> !Send for EventLoop<T>
impl<T> !Sync for EventLoop<T>
impl<T> Unpin for EventLoop<T>where T: Unpin,
impl<T> !UnwindSafe for EventLoop<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more