pub struct SiftDB { /* private fields */ }Expand description
SiftDB collection - the main entry point
Implementations§
Source§impl SiftDB
impl SiftDB
Sourcepub fn snapshot(&self) -> Result<Snapshot>
pub fn snapshot(&self) -> Result<Snapshot>
Get a snapshot of the current state (with default timeout)
Sourcepub fn snapshot_with_lock_config(
&self,
timeout_secs: u64,
holder_info: String,
) -> Result<Snapshot>
pub fn snapshot_with_lock_config( &self, timeout_secs: u64, holder_info: String, ) -> Result<Snapshot>
Get a snapshot of the current state with custom lock configuration
Sourcepub fn incremental_update(
&self,
source_path: &Path,
includes: &[String],
excludes: &[String],
) -> Result<DeltaManifest>
pub fn incremental_update( &self, source_path: &Path, includes: &[String], excludes: &[String], ) -> Result<DeltaManifest>
Perform incremental update of the collection
Sourcepub fn has_incremental_cache(&self) -> bool
pub fn has_incremental_cache(&self) -> bool
Check if incremental update is available
Auto Trait Implementations§
impl Freeze for SiftDB
impl RefUnwindSafe for SiftDB
impl Send for SiftDB
impl Sync for SiftDB
impl Unpin for SiftDB
impl UnwindSafe for SiftDB
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