Skip to main content

EventLoop

Trait EventLoop 

Source
pub trait EventLoop {
    // Required method
    fn run<F>(&mut self, handler: F)
       where F: FnMut(PlatformEvent, &mut EventLoopControl);
}
Expand description

Abstract platform event loop trait.

Required Methods§

Source

fn run<F>(&mut self, handler: F)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§