pub struct CompactionPolicy {
pub after_batches: usize,
pub reflog_window: usize,
}Expand description
When the secret log folds itself automatically.
reflog_window remains in the public constructor for compatibility with old
callers; secrets always compact to the current values only.
Fields§
§after_batches: usizeCompact once the live log holds this many framed batches.
Checked on the secret write path. 0 disables threshold-based automatic
compaction; replacements are still compacted immediately.
reflog_window: usizeIgnored by the secret store; retained for API compatibility with callers that still construct the old reference-log policy shape.
Implementations§
Trait Implementations§
Source§impl Clone for CompactionPolicy
impl Clone for CompactionPolicy
impl Copy for CompactionPolicy
Source§impl Debug for CompactionPolicy
impl Debug for CompactionPolicy
Source§impl Default for CompactionPolicy
impl Default for CompactionPolicy
impl Eq for CompactionPolicy
Source§impl PartialEq for CompactionPolicy
impl PartialEq for CompactionPolicy
impl StructuralPartialEq for CompactionPolicy
Auto Trait Implementations§
impl Freeze for CompactionPolicy
impl RefUnwindSafe for CompactionPolicy
impl Send for CompactionPolicy
impl Sync for CompactionPolicy
impl Unpin for CompactionPolicy
impl UnsafeUnpin for CompactionPolicy
impl UnwindSafe for CompactionPolicy
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.