pub enum RotateMode {
Daily,
Hourly,
}Expand description
How often the log file rotates by time.
The Rust port of the Go SDK’s RotateMode constants.
Variants§
Daily
Rotate once a day; file names look like log.2026-11-17.
Hourly
Rotate once an hour; file names look like log.2026-11-17-09.
Trait Implementations§
Source§impl Clone for RotateMode
impl Clone for RotateMode
impl Copy for RotateMode
Source§impl Debug for RotateMode
impl Debug for RotateMode
Source§impl Default for RotateMode
impl Default for RotateMode
impl Eq for RotateMode
Source§impl Hash for RotateMode
impl Hash for RotateMode
Source§impl PartialEq for RotateMode
impl PartialEq for RotateMode
impl StructuralPartialEq for RotateMode
Auto Trait Implementations§
impl Forget for RotateMode
impl Freeze for RotateMode
impl Move for RotateMode
impl RefUnwindSafe for RotateMode
impl Send for RotateMode
impl Sync for RotateMode
impl Unpin for RotateMode
impl UnsafeUnpin for RotateMode
impl UnwindSafe for RotateMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.