pub enum LinkMethod {
Reflink,
Hardlink,
Softlink,
Copy,
Patched(FileMode),
}Expand description
Describes the method to “link” a file from the source directory (or the cache directory) to the destination directory.
Variants§
Reflink
A ref link is created from the cache to the destination. This ensures that the file does not take up more disk-space and that the file is not accidentally modified in the cache.
Hardlink
A hard link is created from the cache to the destination. This ensures that the file does not take up more disk-space but has the downside that if the file is accidentally modified it is also modified in the cache.
Softlink
A soft link is created. The link does not refer to the original file in the cache directory but instead it points to another file in the destination.
Copy
A copy of a file is created from a file in the cache directory to a file in the destination directory.
Patched(FileMode)
A copy of a file is created and it is also patched.
Trait Implementations§
Source§impl Clone for LinkMethod
impl Clone for LinkMethod
Source§fn clone(&self) -> LinkMethod
fn clone(&self) -> LinkMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LinkMethod
impl Debug for LinkMethod
Source§impl Display for LinkMethod
impl Display for LinkMethod
Source§impl Hash for LinkMethod
impl Hash for LinkMethod
Source§impl PartialEq for LinkMethod
impl PartialEq for LinkMethod
impl Copy for LinkMethod
impl Eq for LinkMethod
impl StructuralPartialEq for LinkMethod
Auto Trait Implementations§
impl Freeze for LinkMethod
impl RefUnwindSafe for LinkMethod
impl Send for LinkMethod
impl Sync for LinkMethod
impl Unpin for LinkMethod
impl UnwindSafe for LinkMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.