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: bool
Trait 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§fn default() -> KVCacheConfig
fn default() -> KVCacheConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KVCacheConfig
impl<'de> Deserialize<'de> for KVCacheConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KVCacheConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KVCacheConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for KVCacheConfig
impl Serialize for KVCacheConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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