Trait winit::platform::web::ActiveEventLoopExtWebSys

source ·
pub trait ActiveEventLoopExtWebSys {
    // Required methods
    fn set_poll_strategy(&self, strategy: PollStrategy);
    fn poll_strategy(&self) -> PollStrategy;
    fn create_custom_cursor_async(
        &self,
        source: CustomCursorSource
    ) -> CustomCursorFuture ;
}
Available on web_platform only.

Required Methods§

source

fn set_poll_strategy(&self, strategy: PollStrategy)

Sets the strategy for ControlFlow::Poll.

See PollStrategy.

source

fn poll_strategy(&self) -> PollStrategy

Gets the strategy for ControlFlow::Poll.

See PollStrategy.

source

fn create_custom_cursor_async( &self, source: CustomCursorSource ) -> CustomCursorFuture

Async version of ActiveEventLoop::create_custom_cursor() which waits until the cursor has completely finished loading.

Implementors§