Initialise the global config. Call once from `main()`. Panics if called more than once.
(cfg: TridentConfig)
| 67 | /// Initialise the global config. Call once from `main()`. |
| 68 | /// Panics if called more than once. |
| 69 | pub fn init(cfg: TridentConfig) { |
| 70 | CONFIG |
| 71 | .set(cfg) |
| 72 | .expect("TridentConfig::init called more than once"); |
| 73 | } |
| 74 | |
| 75 | /// Read the global config. Returns the default if [`init`] was never called |
| 76 | /// (useful in unit tests). |
no test coverage detected