pub struct KVCacheConfig {
pub precision: PrecisionLevel,
pub block_size: usize,
pub spot_capacity: usize,
pub max_cache_items: usize,
pub salience_threshold: f32,
pub enable_debug_logging: bool,
pub eviction_policy: EvictionPolicy,
pub compression_enabled: bool,
}Fields§
§precision: PrecisionLevel§block_size: usize§spot_capacity: usize§max_cache_items: usize§salience_threshold: f32§enable_debug_logging: bool§eviction_policy: EvictionPolicy§compression_enabled: boolTrait Implementations§
Source§impl Clone for KVCacheConfig
impl Clone for KVCacheConfig
Source§fn clone(&self) -> KVCacheConfig
fn clone(&self) -> KVCacheConfig
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 KVCacheConfig
impl Debug for KVCacheConfig
Source§impl Default for KVCacheConfig
impl Default for KVCacheConfig
Source§impl<'de> Deserialize<'de> for KVCacheConfig
impl<'de> Deserialize<'de> for KVCacheConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KVCacheConfig
impl RefUnwindSafe for KVCacheConfig
impl Send for KVCacheConfig
impl Sync for KVCacheConfig
impl Unpin for KVCacheConfig
impl UnwindSafe for KVCacheConfig
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