pub struct RotationConfig {
pub max_size: u64,
pub max_files: u32,
}Expand description
Configuration for automatic log file rotation.
Fields§
§max_size: u64Maximum file size in bytes before rotating. Must be > 0.
max_files: u32Maximum number of rotated files to keep. Oldest files beyond this count are deleted.
Implementations§
Source§impl RotationConfig
impl RotationConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RotationConfig
impl RefUnwindSafe for RotationConfig
impl Send for RotationConfig
impl Sync for RotationConfig
impl Unpin for RotationConfig
impl UnsafeUnpin for RotationConfig
impl UnwindSafe for RotationConfig
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