Enum gix_odb::store::RefreshMode
source · pub enum RefreshMode {
AfterAllIndicesLoaded,
Never,
}
Expand description
Decide what happens when all indices are loaded.
Variants§
AfterAllIndicesLoaded
Check for new or changed pack indices (and pack data files) when the last known index is loaded. During runtime we will keep pack indices stable by never reusing them, however, there is the option for clearing internal caches which is likely to change pack ids and it will trigger unloading of packs as they are missing on disk.
Never
Use this if you expect a lot of missing objects that shouldn’t trigger refreshes even after all packs are loaded. This comes at the risk of not learning that the packs have changed in the mean time.
Implementations§
source§impl RefreshMode
impl RefreshMode
Trait Implementations§
source§impl Clone for RefreshMode
impl Clone for RefreshMode
source§fn clone(&self) -> RefreshMode
fn clone(&self) -> RefreshMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for RefreshMode
impl Default for RefreshMode
source§fn default() -> RefreshMode
fn default() -> RefreshMode
Returns the “default value” for a type. Read more
impl Copy for RefreshMode
Auto Trait Implementations§
impl Freeze for RefreshMode
impl RefUnwindSafe for RefreshMode
impl Send for RefreshMode
impl Sync for RefreshMode
impl Unpin for RefreshMode
impl UnwindSafe for RefreshMode
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)