Enum fast_log::plugin::file_split::RollingType
source · [−]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)
Implementations
sourceimpl RollingType
impl RollingType
pub fn do_rolling(&self, temp_name: &str, dir: &str)
Trait Implementations
sourceimpl Clone for RollingType
impl Clone for RollingType
sourcefn clone(&self) -> RollingType
fn clone(&self) -> RollingType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RollingType
impl Debug for RollingType
impl Copy for RollingType
Auto Trait Implementations
impl RefUnwindSafe for RollingType
impl Send for RollingType
impl Sync for RollingType
impl Unpin for RollingType
impl UnwindSafe for RollingType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more