pub enum CheckMode {
Check,
Update,
UpdateAll,
}Expand description
Mode for checking files against the cache.
Variants§
Check
Same as !update (does not update cache unless size is 0 and modified time is unchanged).
Update
Update cache if metadata is changed or new, otherwise no-op.
UpdateAll
Same as update (always recomputes hashes and updates cache).
Trait Implementations§
impl Copy for CheckMode
impl Eq for CheckMode
impl StructuralPartialEq for CheckMode
Auto Trait Implementations§
impl Freeze for CheckMode
impl RefUnwindSafe for CheckMode
impl Send for CheckMode
impl Sync for CheckMode
impl Unpin for CheckMode
impl UnsafeUnpin for CheckMode
impl UnwindSafe for CheckMode
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<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