[−][src]Struct browser_window::Application
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]
fn clone(&self) -> Application
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Deref for Application
[src]
type Target = ApplicationHandle
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl From<Application> for ApplicationAsync
[src]
fn from(app: Application) -> 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,