pub struct GcResponse {
pub namespace_id: NamespaceId,
pub deleted: DeletedObjectCounts,
pub deleted_checkpoints_by_owner: DeletedCheckpointsByOwner,
pub retained: RetainedCandidates,
pub next_reclamation_at_ms: Option<u64>,
pub reclaim_after_ms: Option<u64>,
}Expand description
The result of one stateless garbage-collection call.
Fields§
§namespace_id: NamespaceIdNamespace the pass ran against.
deleted: DeletedObjectCountsObjects the pass deleted, split by object family.
deleted_checkpoints_by_owner: DeletedCheckpointsByOwnerThe checkpoint records deleted by the pass, grouped by owner.
retained: RetainedCandidatesCandidates retained at deletion time, grouped by reason.
next_reclamation_at_ms: Option<u64>The earliest known future reclamation time observed by this pass.
reclaim_after_ms: Option<u64>The deleted head’s irrevocable owner-prefix collection deadline.
Implementations§
Source§impl GcResponse
impl GcResponse
Sourcepub fn empty(namespace_id: NamespaceId) -> Self
pub fn empty(namespace_id: NamespaceId) -> Self
An empty report for namespace_id, before any candidate is examined.
Sourcepub fn retain(&mut self, reason: RetainedReason)
pub fn retain(&mut self, reason: RetainedReason)
Records one retained candidate under the reason that spared it.
Trait Implementations§
Source§impl Clone for GcResponse
impl Clone for GcResponse
Source§impl Debug for GcResponse
impl Debug for GcResponse
Source§impl<'de> Deserialize<'de> for GcResponse
impl<'de> Deserialize<'de> for GcResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GcResponse
Source§impl PartialEq for GcResponse
impl PartialEq for GcResponse
Source§impl Serialize for GcResponse
impl Serialize for GcResponse
impl StructuralPartialEq for GcResponse
Auto Trait Implementations§
impl Freeze for GcResponse
impl RefUnwindSafe for GcResponse
impl Send for GcResponse
impl Sync for GcResponse
impl Unpin for GcResponse
impl UnsafeUnpin for GcResponse
impl UnwindSafe for GcResponse
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