pub struct ByAge {
pub age_type: Age,
pub use_last_time: bool,
}Fields§
§age_type: AgeRotate the file by day / hour.
use_last_time: boolSimilar to system’s log-rotate, For Age::Day, the latest archive use yesterday’s timestamp; For Age::Hour, use last hour’s timestamp.
Trait Implementations§
impl Copy for ByAge
impl StructuralPartialEq for ByAge
Auto Trait Implementations§
impl Freeze for ByAge
impl RefUnwindSafe for ByAge
impl Send for ByAge
impl Sync for ByAge
impl Unpin for ByAge
impl UnwindSafe for ByAge
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