server_manager/manager/
type.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::*;

/// Title: ServerManager structure for managing the server process
///
/// Parameters:
/// - None
///
/// Returns:
/// - None
///
/// This structure encapsulates the server management operations and holds the user-provided configuration and the server function.
pub struct ServerManager<F> {
    pub(crate) config: ServerManagerConfig,
    pub(crate) server_fn: F,
}