[−][src]Struct browser_window::ApplicationAsync
A thread-safe application handle. This handle also allows you to dispatch code to be executed on the GUI thread.
Implementations
impl ApplicationAsync
[src]
pub fn dispatch<'a, F, R>(&self, func: F) -> ApplicationDispatchFuture<'a, R> where
F: FnOnce(ApplicationHandle) -> R + Send + 'a,
R: Send,
[src]
F: FnOnce(ApplicationHandle) -> R + Send + 'a,
R: Send,
Executes the given closure on the GUI thread.
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.
Trait Implementations
impl Clone for ApplicationAsync
[src]
fn clone(&self) -> ApplicationAsync
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Deref for ApplicationAsync
[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 ApplicationAsync
impl Send for ApplicationAsync
impl Sync for ApplicationAsync
impl Unpin for ApplicationAsync
impl UnwindSafe for ApplicationAsync
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>,