Struct atomic_file::Upgrade
source · pub struct Upgrade {
pub initial_version: u8,
pub updated_version: u8,
pub process: WrappedUpgradeFunc,
}Expand description
Upgrade defines an upgrade process for upgrading the data in a file from one version to another.
Fields§
§initial_version: u8initial_version designates the version of the file that this upgrade should be applied to.
updated_version: u8updated_version designates the version of the file after the upgrade is complete.
process: WrappedUpgradeFuncprocess defines the function that is used to upgrade the file.