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.
pub fn dispatch_delayed<'a, F>(&self, func: F, delay: Duration) -> bool where
F: FnOnce(ApplicationHandle) + 'a,
pub fn dispatch_delayed<'a, F>(&self, func: F, delay: Duration) -> bool where
F: FnOnce(ApplicationHandle) + 'a,
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.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ApplicationHandle
impl !Send for ApplicationHandle
impl !Sync for ApplicationHandle
impl Unpin for ApplicationHandle
impl UnwindSafe for ApplicationHandle
Blanket Implementations
Mutably borrows from an owned value. Read more