[−][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 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]
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) -> ApplicationAsync
[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>,