Enum file_rotate::suffix::FileLimit
source · pub enum FileLimit {
MaxFiles(usize),
Age(Duration),
Unlimited,
}
Expand description
How to determine whether a file should be deleted, in the case of AppendTimestamp.
Variants§
MaxFiles(usize)
Delete the oldest files if number of files is too high
Age(Duration)
Delete files whose age exceeds the Duration
- age is determined by the suffix of the file
Unlimited
Never delete files
Auto Trait Implementations§
impl Freeze for FileLimit
impl RefUnwindSafe for FileLimit
impl Send for FileLimit
impl Sync for FileLimit
impl Unpin for FileLimit
impl UnwindSafe for FileLimit
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