pub enum AppExitType {
Cancelable,
Required,
}Expand description
The type of application exit to perform when calling ServicesBinding::exit_application.
Flutter counterpart: AppExitType (dart:ui platform_dispatcher.dart).
Variants§
Cancelable
Requests that the application start an orderly exit, sending a request back to the
framework through the WidgetsBinding. If that responds with AppExitResponse::Exit,
then proceed with the same steps as a Required exit. If that
responds with AppExitResponse::Cancel, then the exit request is canceled and the
application continues executing normally.
Required
A non-cancelable orderly exit request. The engine will shut down the engine and call the native UI toolkit’s exit API.
If you need an even faster and more dangerous exit, then call
std::process::exit directly, and even the native toolkit’s exit API won’t be
called. This is quite dangerous, though, since it’s possible that the engine will
crash because it hasn’t been properly shut down, causing the app to crash on exit.
Trait Implementations§
Source§impl Clone for AppExitType
impl Clone for AppExitType
impl Copy for AppExitType
Source§impl Debug for AppExitType
impl Debug for AppExitType
impl Eq for AppExitType
Source§impl Hash for AppExitType
impl Hash for AppExitType
Source§impl PartialEq for AppExitType
impl PartialEq for AppExitType
impl StructuralPartialEq for AppExitType
Auto Trait Implementations§
impl Freeze for AppExitType
impl RefUnwindSafe for AppExitType
impl Send for AppExitType
impl Sync for AppExitType
impl Unpin for AppExitType
impl UnsafeUnpin for AppExitType
impl UnwindSafe for AppExitType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.