pub enum RotationStrategy {
KeepAll,
KeepOne,
KeepSome(usize),
}Variants§
KeepAll
Will keep all the logs, renaming them to include the date.
KeepOne
Will only keep the most recent log up to its maximal size.
KeepSome(usize)
Will keep some of the most recent logs, renaming them to include the date.
Trait Implementations§
Source§impl Clone for RotationStrategy
impl Clone for RotationStrategy
Source§fn clone(&self) -> RotationStrategy
fn clone(&self) -> RotationStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RotationStrategy
impl RefUnwindSafe for RotationStrategy
impl Send for RotationStrategy
impl Sync for RotationStrategy
impl Unpin for RotationStrategy
impl UnwindSafe for RotationStrategy
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