pub struct RotationPolicy {
pub max_entries: usize,
pub max_age_ms: i64,
}Expand description
审计日志轮转策略配置。
max_entries:内存中最多保留的日志条数,超过后自动轮转(旧日志清空或落盘)max_age_ms:日志最大存活时间(毫秒),超过后触发轮转
Fields§
§max_entries: usize最大条目数(0 表示不限制)
max_age_ms: i64最大存活时间毫秒(0 表示不限制)
Implementations§
Trait Implementations§
Source§impl Clone for RotationPolicy
impl Clone for RotationPolicy
Source§fn clone(&self) -> RotationPolicy
fn clone(&self) -> RotationPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RotationPolicy
impl Debug for RotationPolicy
Auto Trait Implementations§
impl Freeze for RotationPolicy
impl RefUnwindSafe for RotationPolicy
impl Send for RotationPolicy
impl Sync for RotationPolicy
impl Unpin for RotationPolicy
impl UnsafeUnpin for RotationPolicy
impl UnwindSafe for RotationPolicy
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