pub enum AutoGcReason {
TooManyLoose {
estimate: usize,
limit: usize,
},
TooManyPacks {
count: usize,
limit: usize,
},
}Expand description
Why automatic maintenance is due, as decided by auto_gc_needed.
Variants§
TooManyLoose
The loose-object estimate is above gc.auto. gc_auto packs the reachable loose
objects into one new pack and leaves existing packs alone.
Fields
TooManyPacks
There are more non-.keep packs than gc.autoPackLimit. gc_auto consolidates
every pack into one.
Trait Implementations§
Source§impl Clone for AutoGcReason
impl Clone for AutoGcReason
impl Copy for AutoGcReason
Source§impl Debug for AutoGcReason
impl Debug for AutoGcReason
impl Eq for AutoGcReason
Source§impl PartialEq for AutoGcReason
impl PartialEq for AutoGcReason
impl StructuralPartialEq for AutoGcReason
Auto Trait Implementations§
impl Freeze for AutoGcReason
impl RefUnwindSafe for AutoGcReason
impl Send for AutoGcReason
impl Sync for AutoGcReason
impl Unpin for AutoGcReason
impl UnsafeUnpin for AutoGcReason
impl UnwindSafe for AutoGcReason
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.