Enum fast_log::plugin::file_split::KeepType
source · pub enum KeepType {
All,
KeepTime(Duration),
KeepNum(i64),
}
Expand description
rolling keep type
Variants§
All
keep All of log packs
KeepTime(Duration)
keep by Time Duration, for example: // keep one day log pack (Duration::from_secs(24 * 3600))
KeepNum(i64)
keep log pack num(.log,.zip.lz4…more)
Trait Implementations§
impl Copy for KeepType
Auto Trait Implementations§
impl RefUnwindSafe for KeepType
impl Send for KeepType
impl Sync for KeepType
impl Unpin for KeepType
impl UnwindSafe for KeepType
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