pub struct LogRetentionPolicy {
pub max_file_bytes: u64,
pub keep_rotated: usize,
pub warn_total_bytes: u64,
pub critical_total_bytes: u64,
}Expand description
Size/retention policy for the managed daemon logs.
Fields§
§max_file_bytes: u64Rotate an active log once it exceeds this many bytes.
keep_rotated: usizeRotated generations to retain per log (oldest beyond this are pruned).
warn_total_bytes: u64Managed total (active + rotated) at/above which pressure is Warning.
critical_total_bytes: u64Managed total at/above which pressure is Critical.
Trait Implementations§
Source§impl Clone for LogRetentionPolicy
impl Clone for LogRetentionPolicy
impl Copy for LogRetentionPolicy
Source§impl Debug for LogRetentionPolicy
impl Debug for LogRetentionPolicy
Source§impl Default for LogRetentionPolicy
impl Default for LogRetentionPolicy
impl Eq for LogRetentionPolicy
Source§impl From<&LogRetentionConfig> for LogRetentionPolicy
impl From<&LogRetentionConfig> for LogRetentionPolicy
Source§fn from(cfg: &LogRetentionConfig) -> Self
fn from(cfg: &LogRetentionConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LogRetentionPolicy
impl PartialEq for LogRetentionPolicy
impl StructuralPartialEq for LogRetentionPolicy
Auto Trait Implementations§
impl Freeze for LogRetentionPolicy
impl RefUnwindSafe for LogRetentionPolicy
impl Send for LogRetentionPolicy
impl Sync for LogRetentionPolicy
impl Unpin for LogRetentionPolicy
impl UnsafeUnpin for LogRetentionPolicy
impl UnwindSafe for LogRetentionPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.