#[non_exhaustive]pub enum MigrationState {
Ready,
ReadyWithOmissions,
Incomplete,
}Expand description
How far a migration into an app root got. Recorded in the versioned state file
(MIGRATION_STATE); read it with AppRoot::migration_state or
MigrationReport::state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ready
Everything in the recorded scope was migrated & verified. Whole-tree scope also writes
the historical marker MIGRATION_MARKER.
ReadyWithOmissions
Every required entry is in place. Only entries the caller declared disposable are missing, and each is recorded (optional links that could not be created, reparse points skipped on request). The destination is usable. The historical marker is not written, so a reader of an earlier version does not take it for a complete move; a rerun retries the omitted links.
Incomplete
The copy was started and not finished (interrupted, or stopped by a failure such as a required link the destination cannot create). The destination is not usable: the old root stays the authority. A rerun verifies and finishes the copy. No historical marker exists.