pub struct LocalRetentionSegment {
pub blocked: bool,
pub expired: bool,
pub size: u64,
}Expand description
What the local retention walk knows about one local segment.
Fields§
§blocked: boolNo pass may delete this segment, and every pass stops at it. The host
sets it for a segment that holds a record whose delivery time has not
arrived, or for a tiered segment that the remote tier does not cover
whole. It plays the part of Kafka’s high-watermark bound and its
isSegmentEligibleForDeletion check.
expired: boolThe segment breaches retention.ms, or it lies wholly below the log
start offset.
size: u64The segment’s exact size in bytes.
Trait Implementations§
Source§impl Clone for LocalRetentionSegment
impl Clone for LocalRetentionSegment
Source§fn clone(&self) -> LocalRetentionSegment
fn clone(&self) -> LocalRetentionSegment
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 LocalRetentionSegment
Source§impl Debug for LocalRetentionSegment
impl Debug for LocalRetentionSegment
impl Eq for LocalRetentionSegment
Source§impl PartialEq for LocalRetentionSegment
impl PartialEq for LocalRetentionSegment
impl StructuralPartialEq for LocalRetentionSegment
Auto Trait Implementations§
impl Freeze for LocalRetentionSegment
impl RefUnwindSafe for LocalRetentionSegment
impl Send for LocalRetentionSegment
impl Sync for LocalRetentionSegment
impl Unpin for LocalRetentionSegment
impl UnsafeUnpin for LocalRetentionSegment
impl UnwindSafe for LocalRetentionSegment
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