pub enum RotationMode {
Bytes(usize),
Lines(usize),
BytesSurpassed(usize),
}
Expand description
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.
BytesSurpassed(usize)
Cut the log file after surpassing size in bytes (but having written a complete buffer from a write call.)
Auto Trait Implementations§
impl Freeze for RotationMode
impl RefUnwindSafe for RotationMode
impl Send for RotationMode
impl Sync for RotationMode
impl Unpin for RotationMode
impl UnwindSafe for RotationMode
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