[][src]Struct browser_window::Application

pub struct Application { /* fields omitted */ }

A thread-unsafe handle to an application instance. Use this to start the application with.

Implementations

impl Application[src]

pub fn into_async(self) -> ApplicationAsync[src]

Get an async clone of this handle

pub fn new() -> Self[src]

Constructs a new application handle Only call this once in your application

pub fn run(&self) -> i32[src]

Run the main loop. This method finishes when all windows are closed.

Methods from Deref<Target = ApplicationHandle>

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

Causes the run function to exit.

Arguments

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

Trait Implementations

impl Clone for Application[src]

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