Skip to main content

init_from_config

Function init_from_config 

Source
pub fn init_from_config(categories: &[String])
Expand description

Initializes the global state from user config (env var > config.toml > default). Call once during server startup after config is loaded. If the global was already initialized (e.g. by a concurrent global() call), applies the categories to the existing state instead.