mirui 0.38.0

A lightweight, no_std ECS-driven UI framework for embedded, desktop, and WebAssembly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! App lifecycle state types.
//!
//! `App` owns the suspend/resume state machine and exposes
//! `App::suspend` / `App::resume` directly. Plugins driving those
//! transitions from inside an event handler write the
//! [`SuspendRequest`] resource into `World`; `App::tick` drains it
//! at the end of each frame and dispatches the matching call.

/// Plugin → App bridge for triggering suspend / resume from inside an
/// event handler.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum SuspendRequest {
    Suspend,
    Resume,
}