Struct browser_window::application::Application[][src]

pub struct Application { /* fields omitted */ }

Use this to initialize and start your application with.

Implementations

impl Application[src]

pub fn finish(self)[src]

Shuts down other processes and performs any necessary clean-up code. This is useful if you main function doesn’t exit naturally. If you call std::process::exit, the variables currently available don’t get dropped. This is problematic because Browser Window needs to shut down properly. Call this if you are using exit or doing something else to kill the process.

pub fn initialize(settings: ApplicationSettings) -> Application[src]

In order to use the Browser Window API, you need to initialize Browser Window at the very start of your application. Preferably on the first line of your main function.

Warning

This will open another process of your application. Therefore, any code that will be placed before initialization will also be executed on all other processes. This is generally unnecessary.

Arguments

settings - Some settings that allow you to tweak some application behaviors. Use Settings::default() for default settings that work for most people.

pub fn start(&self) -> Runtime[src]

Creates a Runtime from which you can run the application.

Trait Implementations

impl Drop for Application[src]

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