pub struct IncrementalUpdater { /* private fields */ }Expand description
Incremental update manager
Implementations§
Source§impl IncrementalUpdater
impl IncrementalUpdater
pub fn new(collection_path: &Path) -> Self
Sourcepub fn scan_for_changes(
&self,
source_path: &Path,
includes: &[String],
excludes: &[String],
) -> Result<Vec<FileChange>>
pub fn scan_for_changes( &self, source_path: &Path, includes: &[String], excludes: &[String], ) -> Result<Vec<FileChange>>
Scan directory and detect changes since last import
Sourcepub fn apply_changes(
&self,
changes: Vec<FileChange>,
source_path: &Path,
) -> Result<DeltaManifest>
pub fn apply_changes( &self, changes: Vec<FileChange>, source_path: &Path, ) -> Result<DeltaManifest>
Apply incremental changes to the collection
Auto Trait Implementations§
impl Freeze for IncrementalUpdater
impl RefUnwindSafe for IncrementalUpdater
impl Send for IncrementalUpdater
impl Sync for IncrementalUpdater
impl Unpin for IncrementalUpdater
impl UnwindSafe for IncrementalUpdater
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