pub struct Retention {
pub max_file_mb: u32,
pub keep: u8,
pub max_age_days: u32,
}Expand description
Size and age bounds for the rename-rotated LineSink, which has exactly
one writer (the daemon’s per-child stderr capture). The logger’s own
segments use SegmentRetention; the two are different files with
different writer counts, and only the single-writer one may rename.
Fields§
§max_file_mb: u32Maximum active-file size in mebibytes.
keep: u8Number of rotated generations to retain.
max_age_days: u32Maximum age of rotated generations in days.
Trait Implementations§
impl Copy for Retention
impl Eq for Retention
impl StructuralPartialEq for Retention
Auto Trait Implementations§
impl Freeze for Retention
impl RefUnwindSafe for Retention
impl Send for Retention
impl Sync for Retention
impl Unpin for Retention
impl UnsafeUnpin for Retention
impl UnwindSafe for Retention
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