# EventLoop in maplibre::event_loop - Rust
API documentation for the Rust `EventLoop` trait in crate `maplibre`.

# Trait maplibre::event_loop::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>)
           where E: Environment,
                 <E::MapWindowConfig as MapWindowConfig>::MapWindow: HeadedMapWindow;
        fn create_proxy(&self) -> Self::EventLoopProxy;
    }

## Required Associated Types§

source

#### type EventLoopProxy: EventLoopProxy<ET>

## Required Methods§

source

#### fn run<E>(self, map: Map<E>, max_frames: Option<u64>)
where E: Environment, <E::MapWindowConfig as MapWindowConfig>::MapWindow: HeadedMapWindow,

source

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

## Object Safety§

This trait is not object safe.

## Implementors§