[][src]Struct browser_window::ApplicationAsync

pub struct ApplicationAsync { /* fields omitted */ }

A thread-safe application handle. This handle also allows you to dispatch code to be executed on the GUI thread.

Implementations

impl ApplicationAsync[src]

pub fn dispatch<'a, F, R>(&self, func: F) -> ApplicationDispatchFuture<'a, R> where
    F: FnOnce(ApplicationHandle) -> R + Send + 'a,
    R: Send
[src]

Executes the given closure on the GUI thread.

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

Signals the application to exit. The run command will return the exit code provided.

Arguments

exit_code - The code that will be returned by the run function when it stops.

Trait Implementations

impl Clone for ApplicationAsync[src]

impl Deref for ApplicationAsync[src]

type Target = ApplicationHandle

The resulting type after dereferencing.

impl From<Application> for ApplicationAsync[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.