Module veloren_server::settings
source ยท Re-exportsยง
pub use admin::AdminRecord;
pub use admin::Admins;
pub use banlist::Ban;
pub use banlist::BanAction;
pub use banlist::BanEntry;
pub use banlist::BanError;
pub use banlist::BanErrorKind;
pub use banlist::BanInfo;
pub use banlist::BanKind;
pub use banlist::BanRecord;
pub use banlist::Banlist;
pub use server_description::ServerDescriptions;
pub use whitelist::Whitelist;
pub use whitelist::WhitelistInfo;
pub use whitelist::WhitelistRecord;
Modulesยง
- Versioned admins settings files.
- Versioned banlist settings files.
- editable ๐
- Versioned server description settings files.
- Versioned whitelist settings files.
Structsยง
- Combines all the editable settings into one struct that is stored in the ecs
Enumsยง
- Errors that can occur during edits to a settings file.
Constantsยง
- ADMINS_FILENAME ๐
- BANLIST_FILENAME ๐
- CONFIG_DIR ๐
- Our upgrade guarantee is that if validation succeeds for an old version, then migration to the next version must always succeed and produce a valid settings file for that version (if we need to change this in the future, it should require careful discussion). Therefore, we would normally panic if the upgrade produced an invalid settings file, which we would perform by doing the following post-validation (example is given for a hypothetical upgrade from Whitelist_V1 to Whitelist_V2):
- SETTINGS_FILENAME ๐
- WHITELIST_FILENAME ๐