pub struct InMemorySnapshotStoreOptions {
pub max_paths: usize,
pub max_versions_per_path: usize,
pub max_total_bytes: usize,
}Expand description
Knobs for InMemorySnapshotStore.
Fields§
§max_paths: usizeMaximum number of distinct paths tracked at once. LRU eviction.
max_versions_per_path: usizeMaximum full-file versions retained per path. Oldest dropped first.
max_total_bytes: usizeGlobal ceiling on retained snapshot text summed across every path’s version history, measured in bytes. Least-recently-used path histories are evicted to stay under it.
Trait Implementations§
Source§impl Clone for InMemorySnapshotStoreOptions
impl Clone for InMemorySnapshotStoreOptions
Source§fn clone(&self) -> InMemorySnapshotStoreOptions
fn clone(&self) -> InMemorySnapshotStoreOptions
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 moreimpl Copy for InMemorySnapshotStoreOptions
Source§impl Debug for InMemorySnapshotStoreOptions
impl Debug for InMemorySnapshotStoreOptions
Auto Trait Implementations§
impl Freeze for InMemorySnapshotStoreOptions
impl RefUnwindSafe for InMemorySnapshotStoreOptions
impl Send for InMemorySnapshotStoreOptions
impl Sync for InMemorySnapshotStoreOptions
impl Unpin for InMemorySnapshotStoreOptions
impl UnsafeUnpin for InMemorySnapshotStoreOptions
impl UnwindSafe for InMemorySnapshotStoreOptions
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