pub enum Before {
Absent,
Current,
Clean,
Modified,
Unknown,
NotTracked,
NotAFile,
UnsafePath,
}Expand description
The state of a requested file before get touches it.
Variants§
Absent
No working file
Current
The working file is the target
Clean
Differs from the target but is exactly what dvs last wrote or added here
Modified
Differs from both the target and what dvs last wrote or added here
Unknown
Differs from the target, and dvs has no record of writing it
NotTracked
No .dvs file for the requested path
NotAFile
The destination is a directory, a symlink or another non-regular file
UnsafePath
The destination resolves outside the project
Implementations§
Trait Implementations§
impl Copy for Before
impl Eq for Before
impl StructuralPartialEq for Before
Auto Trait Implementations§
impl Freeze for Before
impl RefUnwindSafe for Before
impl Send for Before
impl Sync for Before
impl Unpin for Before
impl UnsafeUnpin for Before
impl UnwindSafe for Before
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<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> ⓘ
Converts
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> ⓘ
Converts
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