Struct browser_window::application::ApplicationHandle[][src]

pub struct ApplicationHandle { /* fields omitted */ }
Expand description

A thread-unsafe application handle. Often provided by for Browser Window.

Implementations

Causes the Runtime to terminate. The Runtime’s Runtime::run or spawn command will return the exit code provided. This will mean that not all tasks might complete. If you were awaiting

Note: Only available with feature threadsafe enabled.

Transforms this application handle into a thread-safe version of it.

Spawns the given future, executing it on the GUI thread somewhere in the near future.

Queues the given closure func to be executed on the GUI thread somewhere in the future, at least after the given delay. The closure will only execute when and if the runtime is still running. Returns whether or not the closure will be able to execute.

Will wait the given duration before returning execution back to the caller. This does not put the current thread in a sleeping state, it just waits.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.