pub struct Options {
pub trust_ctime: bool,
pub check_stat: bool,
pub use_nsec: bool,
pub use_stdev: bool,
}
Expand description
Configuration for comparing stat entries
Fields§
§trust_ctime: bool
If true, a files creation time is taken into consideration when checking if a file changed. Can be set to false in case other tools alter the creation time in ways that interfere with our operation.
Default true
.
check_stat: bool
If true, all stat fields will be used when checking for up-to-date’ness of the entry. Otherwise nano-second parts of mtime and ctime,uid, gid, inode and device number will not be used, leaving only the whole-second part of ctime and mtime and the file size to be checked.
Default true
.
use_nsec: bool
Whether to compare nano secs when comparing timestamps. This currently leads to many false positives on linux and is therefore disabled there.
Default false
use_stdev: bool
Whether to compare network devices secs when comparing timestamps. Disabled by default because this can cause many false positives on network devices where the device number is not stable
Default false
.
Trait Implementations§
source§impl PartialEq for Options
impl PartialEq for Options
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)