pub struct UpdateReport {
pub added_files: usize,
pub modified_files: usize,
pub removed_files: usize,
pub mtime_refreshed_files: usize,
pub kept_chunks: usize,
pub new_chunks: usize,
pub total_chunks: usize,
}Expand description
Outcome of an incremental update — returned by
crate::VelesIndex::update_from_path.
Fields§
§added_files: usizeFiles seen on disk that weren’t in the previous manifest.
modified_files: usizeFiles whose (size, mtime) fingerprint changed and whose content
(when checked via content_hash) actually differed.
removed_files: usizeFiles in the previous manifest no longer present on disk.
mtime_refreshed_files: usizeFiles whose mtime drifted but whose content_hash still matched —
no re-embedding needed, but the manifest’s fingerprint was refreshed
so subsequent status / update calls skip the hash recompute.
kept_chunks: usizeChunks reused from the previous index without re-embedding.
new_chunks: usizeChunks freshly embedded for added/modified files.
total_chunks: usizeTotal chunks in the updated index (kept + new).
Implementations§
Trait Implementations§
Source§impl Clone for UpdateReport
impl Clone for UpdateReport
Source§fn clone(&self) -> UpdateReport
fn clone(&self) -> UpdateReport
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 moreSource§impl Debug for UpdateReport
impl Debug for UpdateReport
Source§impl Default for UpdateReport
impl Default for UpdateReport
Source§fn default() -> UpdateReport
fn default() -> UpdateReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateReport
impl RefUnwindSafe for UpdateReport
impl Send for UpdateReport
impl Sync for UpdateReport
impl Unpin for UpdateReport
impl UnsafeUnpin for UpdateReport
impl UnwindSafe for UpdateReport
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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