pub struct GcPlan {
pub retained: BTreeMap<OpId, RetentionReason>,
pub to_delete: Vec<OpId>,
}Expand description
The plan for a single GC pass: which ops survive (with the
reason) and which are slated for deletion. apply_gc(plan)
turns this into actual filesystem changes.
Fields§
§retained: BTreeMap<OpId, RetentionReason>§to_delete: Vec<OpId>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GcPlan
impl<'de> Deserialize<'de> for GcPlan
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
Auto Trait Implementations§
impl Freeze for GcPlan
impl RefUnwindSafe for GcPlan
impl Send for GcPlan
impl Sync for GcPlan
impl Unpin for GcPlan
impl UnsafeUnpin for GcPlan
impl UnwindSafe for GcPlan
Blanket Implementations§
impl<T> Allocation for T
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