server_manager/manager/
struct.rs

1use crate::*;
2
3/// Main structure for managing server processes.
4#[derive(Clone)]
5pub struct ServerManager {
6    /// Path to the PID file for process tracking.
7    pub(crate) pid_file: String,
8    /// An asynchronous function to be called before stopping the server.
9    pub(crate) stop_hook: ServerManagerHook,
10    /// An asynchronous function to be called before starting the server.
11    pub(crate) start_hook: ServerManagerHook,
12    /// Server function to be executed.
13    pub(crate) server_hook: ServerManagerHook,
14}