ferroui_controls/shutdown_mode.rs
1/// Describes the possible values for the shutdown mode of the classic
2/// desktop style application lifetime.
3#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
4pub enum ShutdownMode {
5 /// Indicates an implicit call to shutdown when the last window closes.
6 #[default]
7 OnLastWindowClose,
8
9 /// Indicates an implicit call to shutdown when the main window closes.
10 OnMainWindowClose,
11
12 /// Indicates that the application only exits on an explicit call to
13 /// shutdown.
14 OnExplicitShutdown,
15}