Skip to main content

Module config

Module config 

Source
Expand description

TOML-based configuration, validation, and hot-reload. TOML-based configuration: loading, validation, diffing, and hot-reload.

Load a Config from a file with its load function, or build one with default and set. Serialize back to TOML with save_to_file.

Enable the tokio feature for async loading and file-watcher hot-reload.

Structs§

Config
Configuration structure for the logging system.

Enums§

ConfigError
Configuration error variants.
LogRotation
Log rotation policy variants.
LoggingDestination
Enum representing different logging destinations.

Constants§

HOT_RELOAD_POLL_INTERVALtokio
How often Config::hot_reload_async checks the watched file.