Struct browser_window::application::ApplicationHandle [−][src]
A thread-unsafe application handle. Often provided by for Browser Window.
Implementations
impl ApplicationHandle
[src]
pub fn exit(&self, exit_code: i32)
[src]
Causes the Runtime
to terminate.
The Runtime
’s Runtime::run
or spawn command will return the exit code provided.
This will mean that not all tasks might complete.
If you were awaiting
pub fn into_threaded(self) -> ApplicationHandleThreaded
[src]
Note: Only available with feature threadsafe
enabled.
Transforms this application handle into a thread-safe version of it.
pub fn spawn<F>(&self, future: F) where
F: Future<Output = ()> + 'static,
[src]
F: Future<Output = ()> + 'static,
Spawns the given future, executing it on the GUI thread somewhere in the near future.
Trait Implementations
impl Clone for ApplicationHandle
[src]
fn clone(&self) -> ApplicationHandle
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ApplicationHandle
[src]
impl From<ApplicationHandle> for Application
[src]
fn from(other: ApplicationHandle) -> Self
[src]
impl From<ApplicationHandle> for ApplicationHandleThreaded
[src]
fn from(other: ApplicationHandle) -> Self
[src]
impl HasAppHandle for ApplicationHandle
[src]
fn app_handle(&self) -> ApplicationHandle
[src]
Auto Trait Implementations
impl RefUnwindSafe for ApplicationHandle
impl !Send for ApplicationHandle
impl !Sync for ApplicationHandle
impl Unpin for ApplicationHandle
impl UnwindSafe for ApplicationHandle
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>,