pub struct Rotation {
pub max_size: u64,
pub max_backups: usize,
}Expand description
Size-based rotation with a retention limit. max_size == 0 disables
rotation (unbounded append). When a write would exceed max_size, the
current file is rolled to <name>.1, existing backups shift up, and
anything beyond max_backups is deleted.
Fields§
§max_size: u64§max_backups: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnsafeUnpin for Rotation
impl UnwindSafe for Rotation
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