pub async fn load_generic_state<T: GenericSetup>(
setup: &T,
init_logging: bool,
) -> MResult<GenericServerState>Expand description
Loads the server’s state: initializes the logging and checks YAML config for misconfigurations and errors.
You should call this function only once at startup because of logging setup.