pub struct Reindexer { /* private fields */ }Implementations§
Source§impl Reindexer
impl Reindexer
pub fn new() -> Self
pub fn new_with_options(scan_hidden_folders: bool) -> Self
pub fn detect_changes( &self, conn: &Connection, drive_root: &Path, ) -> SqliteResult<IndexChanges>
Sourcepub fn reconcile_existing(
&self,
conn: &Connection,
drive_root: &Path,
) -> SqliteResult<ReconcileOutcome>
pub fn reconcile_existing( &self, conn: &Connection, drive_root: &Path, ) -> SqliteResult<ReconcileOutcome>
Bring already-indexed rows in line with the disk: follow moves, trash photos whose files are gone and reset photos edited outside Smriti. New files are left to the scanner.
When an unusually large share of the library is missing at once the
removals are held back (see ReconcileOutcome::held_back_removals)
so a disconnected sub-folder or share doesn’t empty the library into
the trash.
pub fn apply_changes( &self, conn: &Connection, changes: &IndexChanges, ) -> SqliteResult<ApplyResult>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reindexer
impl RefUnwindSafe for Reindexer
impl Send for Reindexer
impl Sync for Reindexer
impl Unpin for Reindexer
impl UnsafeUnpin for Reindexer
impl UnwindSafe for Reindexer
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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