pub struct RetentionPlan {
pub plan_id: [u8; 16],
pub generation: u64,
pub requested_floor: u64,
pub effective_floor: u64,
pub current_floor: u64,
pub durable_head: u64,
pub reclaimable_segments: Vec<RetentionSegment>,
pub reclaimable_bytes: u64,
pub blockers: Vec<RetentionBlocker>,
}Expand description
Read-only result of planning KeepFrom(position).
Fields§
§plan_id: [u8; 16]Opaque identifier used to reject stale apply requests.
generation: u64Retention generation observed while planning.
requested_floor: u64Position requested by the operator.
effective_floor: u64Whole-segment boundary the initial compactor could actually use.
current_floor: u64Floor already committed in the manifest.
durable_head: u64Durable head against which this plan was produced.
reclaimable_segments: Vec<RetentionSegment>Closed segments strictly below the effective floor.
reclaimable_bytes: u64Sum of the current segment file lengths.
blockers: Vec<RetentionBlocker>Conditions that prevent safe application of this plan.
Trait Implementations§
Source§impl Clone for RetentionPlan
impl Clone for RetentionPlan
Source§fn clone(&self) -> RetentionPlan
fn clone(&self) -> RetentionPlan
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 moreSource§impl Debug for RetentionPlan
impl Debug for RetentionPlan
impl Eq for RetentionPlan
Source§impl PartialEq for RetentionPlan
impl PartialEq for RetentionPlan
impl StructuralPartialEq for RetentionPlan
Auto Trait Implementations§
impl Freeze for RetentionPlan
impl RefUnwindSafe for RetentionPlan
impl Send for RetentionPlan
impl Sync for RetentionPlan
impl Unpin for RetentionPlan
impl UnsafeUnpin for RetentionPlan
impl UnwindSafe for RetentionPlan
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