Enum file_rotate::ContentLimit
source · pub enum ContentLimit {
Bytes(usize),
Lines(usize),
Time(TimeFrequency),
BytesSurpassed(usize),
None,
}
Expand description
When to move files: Condition on which a file is rotated.
Variants§
Bytes(usize)
Cut the log at the exact size in bytes.
Lines(usize)
Cut the log file at line breaks.
Time(TimeFrequency)
Cut the log at time interval.
BytesSurpassed(usize)
Cut the log file after surpassing size in bytes (but having written a complete buffer from a write call.)
None
Don’t do any rotation automatically
Trait Implementations§
source§impl Clone for ContentLimit
impl Clone for ContentLimit
source§fn clone(&self) -> ContentLimit
fn clone(&self) -> ContentLimit
Returns a copy 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 ContentLimit
impl RefUnwindSafe for ContentLimit
impl Send for ContentLimit
impl Sync for ContentLimit
impl Unpin for ContentLimit
impl UnwindSafe for ContentLimit
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