Module config

Source
Expand description

Cached state configuration for Zebra.

Modules§

hidden 🔒

Structs§

Config
Configuration for the state service.

Functions§

check_and_delete_database 🔒
Check if entry is an old database directory, and delete it from the filesystem. See check_and_delete_old_databases for details.
check_and_delete_old_databases
Spawns a task that checks if there are old database folders, and deletes them from the filesystem.
check_and_delete_old_state_databases
Spawns a task that checks if there are old state database folders, and deletes them from the filesystem.
database_format_version_at_path 🔒
Returns the full semantic version of the on-disk database at version_path.
database_format_version_on_disk
Returns the full semantic version of the on-disk database, based on its config, kind, major version, and network.
delete_old_databases 🔒
Check if there are old database folders and delete them from the filesystem.
gen_temp_path 🔒
parse_dir_name 🔒
Check if entry is a directory with a valid UTF-8 name. (State directory names are guaranteed to be UTF-8.)
parse_major_version 🔒
Parse the database major version number from dir_name.
read_dir 🔒
Return a ReadDir for dir, after checking that dir exists and can be read.
state_database_format_version_on_disk
Returns the full semantic version of the on-disk state database, based on its config and network.