pub struct ScanResult {
pub to_process: Vec<PathBuf>,
pub unchanged: Vec<PathBuf>,
pub deleted: Vec<PathBuf>,
pub changes: Vec<(PathBuf, FileChange)>,
}Expand description
Result of an incremental scan.
Fields§
§to_process: Vec<PathBuf>Files that need processing (new or modified).
unchanged: Vec<PathBuf>Files that are unchanged.
deleted: Vec<PathBuf>Files that were deleted since the last scan.
changes: Vec<(PathBuf, FileChange)>Per-file change classification.
Implementations§
Source§impl ScanResult
impl ScanResult
Sourcepub fn total_examined(&self) -> usize
pub fn total_examined(&self) -> usize
Total files examined.
Sourcepub fn processing_ratio(&self) -> f64
pub fn processing_ratio(&self) -> f64
Fraction of files that need processing (0.0 - 1.0).
Sourcepub fn modified_count(&self) -> usize
pub fn modified_count(&self) -> usize
Number of modified files.
Trait Implementations§
Source§impl Clone for ScanResult
impl Clone for ScanResult
Source§fn clone(&self) -> ScanResult
fn clone(&self) -> ScanResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScanResult
impl RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl UnsafeUnpin for ScanResult
impl UnwindSafe for ScanResult
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