[][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 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.

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

Transform this handle into a thread-safe handle.

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

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

pub fn start() -> Self[src]

Starts the GUI application. Only call this once, and at the start of your program, before anything else. Everything that runs before this function, runs as well on the other (browser engine related) processes. This is generally unnecessary.

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.