pub enum RepackReason {
Manual,
LooseObjects {
count: u64,
},
PackCount {
count: u64,
},
PackBytes {
bytes: u64,
},
Fragmentation {
basis_points: u16,
},
}Expand description
The policy signal that caused a background repack.
Variants§
Manual
An operator explicitly requested a repack.
LooseObjects
The loose-object threshold was crossed.
PackCount
The active pack-count threshold was crossed.
PackBytes
Multiple packs crossed the combined-size threshold.
Fragmentation
Duplicate entries crossed the fragmentation threshold.
Trait Implementations§
Source§impl Clone for RepackReason
impl Clone for RepackReason
Source§fn clone(&self) -> RepackReason
fn clone(&self) -> RepackReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RepackReason
Source§impl Debug for RepackReason
impl Debug for RepackReason
impl Eq for RepackReason
Source§impl PartialEq for RepackReason
impl PartialEq for RepackReason
impl StructuralPartialEq for RepackReason
Auto Trait Implementations§
impl Freeze for RepackReason
impl RefUnwindSafe for RepackReason
impl Send for RepackReason
impl Sync for RepackReason
impl Unpin for RepackReason
impl UnsafeUnpin for RepackReason
impl UnwindSafe for RepackReason
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