pub struct MigrationNotice {
pub from: PathBuf,
pub to: PathBuf,
pub symlink_created: bool,
}Expand description
Returned by ensure_config_root_migrated when an actual migration
took place. Callers print this to stderr so users know their config
dir moved.
Fields§
§from: PathBuf§to: PathBuf§symlink_created: booltrue if the backward-compat symlink at the old path was
successfully created. false on platforms where symlink
creation isn’t supported or failed (e.g. Windows without
privilege); the rename itself still succeeded.
Trait Implementations§
Source§impl Clone for MigrationNotice
impl Clone for MigrationNotice
Source§fn clone(&self) -> MigrationNotice
fn clone(&self) -> MigrationNotice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MigrationNotice
impl RefUnwindSafe for MigrationNotice
impl Send for MigrationNotice
impl Sync for MigrationNotice
impl Unpin for MigrationNotice
impl UnsafeUnpin for MigrationNotice
impl UnwindSafe for MigrationNotice
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