pub struct MemoryMaintenancePolicy {
pub max_auto_learned_commands: Option<usize>,
pub max_active_entries: Option<usize>,
pub archive_deprecated: bool,
}Expand description
Conservative cleanup knobs for persistent memory.
Fields§
§max_auto_learned_commands: Option<usize>Keep at most this many active auto-learned command memories.
max_active_entries: Option<usize>Keep at most this many active memories overall.
archive_deprecated: boolMove deprecated memories out of the active index.
Trait Implementations§
Source§impl Clone for MemoryMaintenancePolicy
impl Clone for MemoryMaintenancePolicy
Source§fn clone(&self) -> MemoryMaintenancePolicy
fn clone(&self) -> MemoryMaintenancePolicy
Returns a duplicate 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 MemoryMaintenancePolicy
impl Debug for MemoryMaintenancePolicy
Auto Trait Implementations§
impl Freeze for MemoryMaintenancePolicy
impl RefUnwindSafe for MemoryMaintenancePolicy
impl Send for MemoryMaintenancePolicy
impl Sync for MemoryMaintenancePolicy
impl Unpin for MemoryMaintenancePolicy
impl UnsafeUnpin for MemoryMaintenancePolicy
impl UnwindSafe for MemoryMaintenancePolicy
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