Trait EventLoop

Source
pub trait EventLoop<ET: 'static + PartialEq> {
    type EventLoopProxy: EventLoopProxy<ET>;

    // Required methods
    fn run<E>(
        self,
        map: Map<E>,
        max_frames: Option<u64>,
    ) -> Result<(), EventLoopError>
       where E: Environment,
             <E::MapWindowConfig as MapWindowConfig>::MapWindow: HeadedMapWindow;
    fn create_proxy(&self) -> Self::EventLoopProxy;
}

Required Associated Types§

Required Methods§

Source

fn run<E>( self, map: Map<E>, max_frames: Option<u64>, ) -> Result<(), EventLoopError>

Source

fn create_proxy(&self) -> Self::EventLoopProxy

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§