pub struct LogDirConfig {
pub min_deletion_age: Duration,
pub max_retention_age: Duration,
pub size_limit: u64,
pub filename_prefix: String,
}Expand description
The log directory cleanup configuration.
Fields§
§min_deletion_age: Duration§max_retention_age: Duration§size_limit: u64§filename_prefix: StringImplementations§
Source§impl LogDirConfig
impl LogDirConfig
pub fn from_config(config: &XetConfig) -> Self
Trait Implementations§
Source§impl Clone for LogDirConfig
impl Clone for LogDirConfig
Source§fn clone(&self) -> LogDirConfig
fn clone(&self) -> LogDirConfig
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 LogDirConfig
impl Debug for LogDirConfig
Source§impl PartialEq for LogDirConfig
impl PartialEq for LogDirConfig
Source§fn eq(&self, other: &LogDirConfig) -> bool
fn eq(&self, other: &LogDirConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LogDirConfig
Auto Trait Implementations§
impl Freeze for LogDirConfig
impl RefUnwindSafe for LogDirConfig
impl Send for LogDirConfig
impl Sync for LogDirConfig
impl Unpin for LogDirConfig
impl UnsafeUnpin for LogDirConfig
impl UnwindSafe for LogDirConfig
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