pub enum LogRetentionPolicy {
Infinite,
Sized {
max_transitions: u64,
},
Chunked {
chunk_size: u64,
archive_directory: PathBuf,
},
}Expand description
Retention policy for the transitions log.
Variants§
Infinite
Keep every transition forever (default).
Sized
Drop the oldest applied transitions once the live log exceeds
max_transitions. Never drops un-applied transitions (R7).
Chunked
Archive the oldest chunk_size applied transitions to a
rolling file in archive_directory once the live log reaches
chunk_size.
Implementations§
Trait Implementations§
Source§impl Clone for LogRetentionPolicy
impl Clone for LogRetentionPolicy
Source§fn clone(&self) -> LogRetentionPolicy
fn clone(&self) -> LogRetentionPolicy
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 LogRetentionPolicy
impl Debug for LogRetentionPolicy
Source§impl Default for LogRetentionPolicy
impl Default for LogRetentionPolicy
Source§fn default() -> LogRetentionPolicy
fn default() -> LogRetentionPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for LogRetentionPolicy
impl PartialEq for LogRetentionPolicy
Source§fn eq(&self, other: &LogRetentionPolicy) -> bool
fn eq(&self, other: &LogRetentionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LogRetentionPolicy
impl StructuralPartialEq for LogRetentionPolicy
Auto Trait Implementations§
impl Freeze for LogRetentionPolicy
impl RefUnwindSafe for LogRetentionPolicy
impl Send for LogRetentionPolicy
impl Sync for LogRetentionPolicy
impl Unpin for LogRetentionPolicy
impl UnsafeUnpin for LogRetentionPolicy
impl UnwindSafe for LogRetentionPolicy
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