Enum git_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
sourceimpl RefreshMode
impl RefreshMode
Trait Implementations
sourceimpl Clone for RefreshMode
impl Clone for RefreshMode
sourcefn clone(&self) -> RefreshMode
fn clone(&self) -> RefreshMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for RefreshMode
impl Default for RefreshMode
impl Copy for RefreshMode
Auto Trait Implementations
impl RefUnwindSafe for RefreshMode
impl Send for RefreshMode
impl Sync for RefreshMode
impl Unpin for RefreshMode
impl UnwindSafe for RefreshMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more