#[non_exhaustive]pub enum FsMove {
None,
Tree(MigrateOptions),
Companions(Vec<PathBuf>),
}Expand description
How the files under the root travel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No file move: the participants carry everything.
Tree(MigrateOptions)
Copy the whole old tree with AppRoot::migrate_from_with under these options, minus the
participants’ owned_paths and the cutover’s own files.
Companions(Vec<PathBuf>)
Publish these files (paths relative to both roots, regular files, at most 256) through one
rightkit-fs FileTransaction rooted at the new root. A destination that already holds
identical bytes is accepted (a rerun); one that holds anything else is a
CutoverError::Collision and nothing is overwritten.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FsMove
impl !UnwindSafe for FsMove
impl Freeze for FsMove
impl Send for FsMove
impl Sync for FsMove
impl Unpin for FsMove
impl UnsafeUnpin for FsMove
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more