Module config_file

Source
Expand description

Generic config file loader that supports reloading

Structs§

ConfigFile
Wrapper around a configuration type T that remembers where it was loaded from and the modification time of the file, and can reload a config if it changed.

Enums§

ConfigBackend
ConfigDir

Constants§

FILE_EXTENSIONS

Traits§

DefaultConfigPath

Functions§

backend_from_path
load_ron_file
parse_ron
ron_to_file_pretty
Writes via tmpfile-and-rename; retains permissions
ron_to_string_pretty
save_config_file
supported_formats