#[non_exhaustive]pub enum Rotation {
Never,
Minutely,
Hourly,
Daily,
}Available on crate feature
std only.Expand description
Time-based rotation schedule for RotatingFile.
Periods are aligned to UTC: Daily rotates at 00:00 UTC, Hourly
at the top of each UTC hour.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Never
Never rotate on time; only max_bytes (if set) triggers
rotation.
Minutely
Rotate at the start of every UTC minute. Mostly useful for testing a rotation setup.
Hourly
Rotate at the start of every UTC hour.
Daily
Rotate at 00:00 UTC every day.
Trait Implementations§
impl Copy for Rotation
impl Eq for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations§
impl Forget for Rotation
impl Freeze for Rotation
impl Move 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