pub enum ShutdownMode {
OnLastWindowClose,
OnMainWindowClose,
OnExplicitShutdown,
}Expand description
Describes the possible values for the shutdown mode of the classic desktop style application lifetime.
Variants§
OnLastWindowClose
Indicates an implicit call to shutdown when the last window closes.
OnMainWindowClose
Indicates an implicit call to shutdown when the main window closes.
OnExplicitShutdown
Indicates that the application only exits on an explicit call to shutdown.
Trait Implementations§
Source§impl Clone for ShutdownMode
impl Clone for ShutdownMode
impl Copy for ShutdownMode
Source§impl Debug for ShutdownMode
impl Debug for ShutdownMode
Source§impl Default for ShutdownMode
impl Default for ShutdownMode
impl Eq for ShutdownMode
Source§impl Hash for ShutdownMode
impl Hash for ShutdownMode
Source§impl MarkupTyped for ShutdownMode
impl MarkupTyped for ShutdownMode
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for ShutdownMode
impl PartialEq for ShutdownMode
impl StructuralPartialEq for ShutdownMode
Auto Trait Implementations§
impl Freeze for ShutdownMode
impl RefUnwindSafe for ShutdownMode
impl Send for ShutdownMode
impl Sync for ShutdownMode
impl Unpin for ShutdownMode
impl UnsafeUnpin for ShutdownMode
impl UnwindSafe for ShutdownMode
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more