#[derive(Default)]
pub struct AppControl {
should_terminate_process: bool,
}
impl AppControl {
pub fn enqueue_terminate_process(&mut self) {
self.should_terminate_process = true;
}
pub fn should_terminate_process(&self) -> bool {
self.should_terminate_process
}
}