pub enum DeletionPolicy {
AllUnused,
UnusedAtLeast(Slot),
}
Expand description
Decides which old cache files to delete
See delete_old_cache_files()
for more info.
Variants§
AllUnused
Delete all the unused cache files Should be used when calculating full accounts hash
UnusedAtLeast(Slot)
Delete only the unused cache files with starting slot range at least this slot Should be used when calculating incremental accounts hash
Trait Implementations§
source§impl Clone for DeletionPolicy
impl Clone for DeletionPolicy
source§fn clone(&self) -> DeletionPolicy
fn clone(&self) -> DeletionPolicy
Returns a copy of the value. Read more
1.0.0 · 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 DeletionPolicy
impl Debug for DeletionPolicy
source§impl PartialEq for DeletionPolicy
impl PartialEq for DeletionPolicy
source§fn eq(&self, other: &DeletionPolicy) -> bool
fn eq(&self, other: &DeletionPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DeletionPolicy
impl Eq for DeletionPolicy
impl StructuralPartialEq for DeletionPolicy
Auto Trait Implementations§
impl RefUnwindSafe for DeletionPolicy
impl Send for DeletionPolicy
impl Sync for DeletionPolicy
impl Unpin for DeletionPolicy
impl UnwindSafe for DeletionPolicy
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.