Struct browser_window::application::Application [−][src]
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]
fn from(other: ApplicationHandle) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for Application
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,