pub struct SharedEmbeddedConfig {
pub total_memory_bytes: Option<usize>,
pub eviction_policy: EvictionPolicy,
pub route_mode: EmbeddedRouteMode,
pub flat_map_capacity_hint: Option<usize>,
pub lock_policy: SharedEmbeddedLockPolicy,
}Expand description
Configuration for SharedEmbeddedStore.
Fields§
§total_memory_bytes: Option<usize>Total memory budget for all stripes. None disables memory-limit eviction.
eviction_policy: EvictionPolicyEviction policy applied independently inside each stripe.
route_mode: EmbeddedRouteModeKey routing mode used by point and session APIs.
flat_map_capacity_hint: Option<usize>Approximate total point-key capacity to reserve across all stripes.
lock_policy: SharedEmbeddedLockPolicyLock policy used by each stripe.
Trait Implementations§
Source§fn clone(&self) -> SharedEmbeddedConfig
fn clone(&self) -> SharedEmbeddedConfig
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 moreAuto Trait Implementations§
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