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: u8
initial_version designates the version of the file that this upgrade should be applied to.
updated_version: u8
updated_version designates the version of the file after the upgrade is complete.
process: WrappedUpgradeFunc
process defines the function that is used to upgrade the file.