pub trait ActiveEventLoopExtWebSys {
// Required methods
fn set_poll_strategy(&self, strategy: PollStrategy);
fn poll_strategy(&self) -> PollStrategy;
fn set_wait_until_strategy(&self, strategy: WaitUntilStrategy);
fn wait_until_strategy(&self) -> WaitUntilStrategy;
fn create_custom_cursor_async(
&self,
source: CustomCursorSource,
) -> CustomCursorFuture ⓘ;
}Available on
web_platform only.Required Methods§
Sourcefn set_poll_strategy(&self, strategy: PollStrategy)
fn set_poll_strategy(&self, strategy: PollStrategy)
Sets the strategy for ControlFlow::Poll.
See PollStrategy.
Sourcefn poll_strategy(&self) -> PollStrategy
fn poll_strategy(&self) -> PollStrategy
Gets the strategy for ControlFlow::Poll.
See PollStrategy.
Sourcefn set_wait_until_strategy(&self, strategy: WaitUntilStrategy)
fn set_wait_until_strategy(&self, strategy: WaitUntilStrategy)
Sets the strategy for ControlFlow::WaitUntil.
See WaitUntilStrategy.
Sourcefn wait_until_strategy(&self) -> WaitUntilStrategy
fn wait_until_strategy(&self) -> WaitUntilStrategy
Gets the strategy for ControlFlow::WaitUntil.
See WaitUntilStrategy.
Sourcefn create_custom_cursor_async(
&self,
source: CustomCursorSource,
) -> CustomCursorFuture ⓘ
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.