// SPDX-License-Identifier: EUPL-1.2
// SPDX-FileCopyrightText: OpenTalk Team <mail@opentalk.eu>
/// The state of the application. This is used to signal all components of the
/// app that the app should shutdown.
#[derive(Debug, Clone, Copy, Default)]pubenumApplicationState{/// The application is running and should continue doing so.
#[default]
Running,/// The application is shutting down.
ShuttingDown,}implApplicationState{/// Returns `true` if the application state is [`ShuttingDown`].
////// [`ShuttingDown`]: ApplicationState::ShuttingDown
pubfnis_shutting_down(&self)->bool{matches!(self,Self::ShuttingDown)}}