pub enum TendrilMode {
CopyMerge,
CopyOverwrite,
Link,
}Expand description
Indicates the behaviour of this tendril, and determines whether it is a copy-type, or a link-type tendril.
Variants§
CopyMerge
Overwrite any files/folders that are present in both the source and destination, but keep anything in the destination folder that is not in the source folder. This only applies to folder tendrils. Tendrils with this mode are considered copy-type.
CopyOverwrite
Completely overwrite the destination folder with the contents of the source folder. This only applies to folder tendrils. Tendrils with this mode are considered copy-type.
Link
Create a symlink at the remote location that points to local file/folder.
Implementations§
Source§impl TendrilMode
impl TendrilMode
pub fn requires_symlink(&self) -> bool
Trait Implementations§
Source§impl Clone for TendrilMode
impl Clone for TendrilMode
Source§fn clone(&self) -> TendrilMode
fn clone(&self) -> TendrilMode
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 TendrilMode
impl Debug for TendrilMode
Source§impl PartialEq for TendrilMode
impl PartialEq for TendrilMode
Source§impl ToString for TendrilMode
impl ToString for TendrilMode
impl Copy for TendrilMode
impl Eq for TendrilMode
impl StructuralPartialEq for TendrilMode
Auto Trait Implementations§
impl Freeze for TendrilMode
impl RefUnwindSafe for TendrilMode
impl Send for TendrilMode
impl Sync for TendrilMode
impl Unpin for TendrilMode
impl UnsafeUnpin for TendrilMode
impl UnwindSafe for TendrilMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.