pub struct SegmentRetention {
pub max_age_days: u32,
pub alarm_segment_mb: u32,
}Expand description
Retention for date segments: an age window pruned by the writer, and a per-segment size at which the writer raises an alarm rather than rotating.
Fields§
§max_age_days: u32Segments strictly older than today - max_age_days are unlinked at
process start and at each day roll. 0 keeps today only.
alarm_segment_mb: u32Size in mebibytes at which today’s segment is reported as oversized, once per process. Never truncates.
Trait Implementations§
Source§impl Clone for SegmentRetention
impl Clone for SegmentRetention
impl Copy for SegmentRetention
Source§impl Debug for SegmentRetention
impl Debug for SegmentRetention
Source§impl Default for SegmentRetention
impl Default for SegmentRetention
impl Eq for SegmentRetention
Source§impl PartialEq for SegmentRetention
impl PartialEq for SegmentRetention
impl StructuralPartialEq for SegmentRetention
Auto Trait Implementations§
impl Freeze for SegmentRetention
impl RefUnwindSafe for SegmentRetention
impl Send for SegmentRetention
impl Sync for SegmentRetention
impl Unpin for SegmentRetention
impl UnsafeUnpin for SegmentRetention
impl UnwindSafe for SegmentRetention
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