pub enum FileState {
Unchanged,
Kept,
Changed,
}Expand description
FileState says what the sync found a file to be.
Variants§
Unchanged
The stat of the file equals the stat in the store, and its
modification time is earlier than the last sync by at least
RACY_MARGIN, so the run doesn’t read the file.
Kept
The run read the file, and its hash equals the hash in the store.
Changed
The run read the file, and the file is new or its hash differs from the hash in the store.
Trait Implementations§
impl Copy for FileState
impl Eq for FileState
impl StructuralPartialEq for FileState
Auto Trait Implementations§
impl Forget for FileState
impl Freeze for FileState
impl Move for FileState
impl RefUnwindSafe for FileState
impl Send for FileState
impl Sync for FileState
impl Unpin for FileState
impl UnsafeUnpin for FileState
impl UnwindSafe for FileState
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.