#[non_exhaustive]pub struct DropPromisedBlobsReport {
pub min_size: u64,
pub keep_newer_than: Option<OffsetDateTime>,
pub candidates: usize,
pub dropped: Vec<DroppedBlob>,
pub kept: KeptBlobCounts,
pub bytes_reclaimed: u64,
pub packs_rewritten: usize,
pub packs_removed: usize,
pub skipped: Option<DropPromisedBlobsSkip>,
}Expand description
What drop_promised_blobs did, or with DropPromisedBlobsOptions::dry_run
would do.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_size: u64The size threshold used.
keep_newer_than: Option<OffsetDateTime>The recency cutoff used (None: no recency protection).
candidates: usizeBlobs stored in promisor packs at or above Self::min_size.
dropped: Vec<DroppedBlob>The blobs dropped (on a dry run, those that would be), sorted by id.
kept: KeptBlobCountsThe candidates that stayed, by reason.
bytes_reclaimed: u64Bytes freed: the old packs’ size (with index and reverse index) minus the new ones’. On a dry run, an estimate: the packed size of the dropped entries.
packs_rewritten: usizePromisor packs rewritten without the dropped blobs.
packs_removed: usizePromisor packs removed because they held only dropped blobs.
skipped: Option<DropPromisedBlobsSkip>Set when gc skipped the phase; the counts are then zero.
Trait Implementations§
Source§impl Clone for DropPromisedBlobsReport
impl Clone for DropPromisedBlobsReport
Source§impl Debug for DropPromisedBlobsReport
impl Debug for DropPromisedBlobsReport
Source§impl Default for DropPromisedBlobsReport
impl Default for DropPromisedBlobsReport
impl Eq for DropPromisedBlobsReport
Source§impl PartialEq for DropPromisedBlobsReport
impl PartialEq for DropPromisedBlobsReport
impl StructuralPartialEq for DropPromisedBlobsReport
Auto Trait Implementations§
impl Freeze for DropPromisedBlobsReport
impl RefUnwindSafe for DropPromisedBlobsReport
impl Send for DropPromisedBlobsReport
impl Sync for DropPromisedBlobsReport
impl Unpin for DropPromisedBlobsReport
impl UnsafeUnpin for DropPromisedBlobsReport
impl UnwindSafe for DropPromisedBlobsReport
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.