pub enum SymlinkBehaviour {
Keep,
Follow,
}Expand description
How to behave when encountering symbolic links during directory copies or moves.
Variants§
Keep
Indicates the symbolic link should be preserved on the destination.
It is possible that a symbolic link cannot be created on the destination, for example in certain cases when source and destination are on different mount points, in which case an error will be returned.
In this mode, broken symbolic links will be handled with the
active BrokenSymlinkBehaviour option used alongside it.
Follow
Indicates the symbolic link should be resolved and its destination content should be copied or moved to the destination instead of preserving the symbolic link.
In this mode, broken symbolic links will always cause errors,
regardless of the active BrokenSymlinkBehaviour.
Trait Implementations§
Source§impl Clone for SymlinkBehaviour
impl Clone for SymlinkBehaviour
Source§fn clone(&self) -> SymlinkBehaviour
fn clone(&self) -> SymlinkBehaviour
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SymlinkBehaviour
impl Debug for SymlinkBehaviour
Source§impl PartialEq for SymlinkBehaviour
impl PartialEq for SymlinkBehaviour
impl Copy for SymlinkBehaviour
impl Eq for SymlinkBehaviour
impl StructuralPartialEq for SymlinkBehaviour
Auto Trait Implementations§
impl Freeze for SymlinkBehaviour
impl RefUnwindSafe for SymlinkBehaviour
impl Send for SymlinkBehaviour
impl Sync for SymlinkBehaviour
impl Unpin for SymlinkBehaviour
impl UnwindSafe for SymlinkBehaviour
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