#[non_exhaustive]pub enum LoadErrorKind {
Show 14 variants
BadMagic,
UnsupportedVersion(u32),
ChecksumMismatch,
Corrupt,
LabelNotFound(String),
ModuleMismatch(String),
CommandMissing(String),
StopArgsFailed,
PackageSlice(String),
DeclOnlyRegistry,
SaveFromNewerVersion {
saved: u32,
current: u32,
},
SaveVersionUnsupported {
saved: u32,
min: u32,
},
SchemaMismatch(Vec<SchemaDiff>),
MigrateFailed(Vec<String>),
}Expand description
The kind of load failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BadMagic
The magic does not match.
UnsupportedVersion(u32)
An unknown format version.
ChecksumMismatch
The checksum does not match.
Corrupt
The body is broken.
LabelNotFound(String)
The saved label is not in the scripts.
ModuleMismatch(String)
The names of the saved modules differ from the scripts’ modules.
CommandMissing(String)
A command used by the program is not in the registry.
StopArgsFailed
The arguments of the stop point could not be rebuilt.
PackageSlice(String)
A package’s slice could not be restored (broken, or migrate returned Err). The value is the package name.
DeclOnlyRegistry
Cannot load with a registry made from a declaration file (it has no functions to run commands).
SaveFromNewerVersion
The save is from a newer schema version than the scripts.
SaveVersionUnsupported
The save is older than the oldest schema version the scripts support (min_save_version).
SchemaMismatch(Vec<SchemaDiff>)
Under LoadPolicy::Strict, variables whose saved type differs from the scripts (all of them).
MigrateFailed(Vec<String>)
Under LoadPolicy::Strict, variables whose migrate conversion failed (all of them).