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 completed transitions once the live log exceeds
max_transitions. Keep pending writes; discard aborted records.
Chunked
Process the oldest chunk_size records once the live log reaches
that size. Archive committed changes in archive_directory,
discard aborted records, and keep pending writes.
Implementations§
Trait Implementations§
Source§impl Clone for LogRetentionPolicy
impl Clone for LogRetentionPolicy
Source§impl Debug for LogRetentionPolicy
impl Debug for LogRetentionPolicy
Source§impl Default for LogRetentionPolicy
impl Default for LogRetentionPolicy
impl Eq for LogRetentionPolicy
Source§impl PartialEq for LogRetentionPolicy
impl PartialEq 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