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

pub struct ApplicationHandle { /* fields omitted */ }

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

Implementations

impl ApplicationHandle[src]

pub fn exit(&self, exit_code: i32)[src]

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

pub fn into_threaded(self) -> ApplicationHandleThreaded[src]

Note: Only available with feature threadsafe enabled.

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

pub fn spawn<F>(&self, future: F) where
    F: Future<Output = ()> + 'static, 
[src]

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

Trait Implementations

impl Clone for ApplicationHandle[src]

impl Copy for ApplicationHandle[src]

impl From<ApplicationHandle> for Application[src]

impl From<ApplicationHandle> for ApplicationHandleThreaded[src]

impl HasAppHandle for ApplicationHandle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.