1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
//! Application state managed by the framework.

use crate::{application::Application, component, thread};

/// Framework-managed application state
#[derive(Debug, Default)]
pub struct State<A: Application + 'static> {
    /// Application components.
    pub components: component::Registry<A>,

    /// Application paths.
    pub paths: A::Paths,

    /// Thread manager.
    pub threads: thread::Manager,
}