1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
mod config;
mod debug;
mod model;
mod multi;
mod manager;
mod scheduler;
mod single;
mod worker;

pub mod shared_mode {
    pub use crate::single::{close, initialize, init_with_config, resize, run};
}

pub mod index_mode {
    pub use crate::multi::{close, initialize, resize_pool, run_with};
}

pub use crate::{
    scheduler::{ExecutionError, PoolManager, PoolState, ThreadPool, ThreadPoolStates},
    manager::{StatusBehaviors, StatusBehaviorSetter},
    config::{Config, ConfigStatus},
};