pub struct StageKvCacheConfig {
pub mode: StageKvCacheMode,
pub payload: StageKvCachePayload,
pub max_entries: usize,
pub max_bytes: u64,
pub min_tokens: u64,
pub shared_prefix_stride_tokens: u64,
pub shared_prefix_record_limit: u64,
}Fields§
§mode: StageKvCacheMode§payload: StageKvCachePayload§max_entries: usize§max_bytes: u64§min_tokens: u64Trait Implementations§
Source§impl Clone for StageKvCacheConfig
impl Clone for StageKvCacheConfig
Source§fn clone(&self) -> StageKvCacheConfig
fn clone(&self) -> StageKvCacheConfig
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 moreSource§impl Debug for StageKvCacheConfig
impl Debug for StageKvCacheConfig
Source§impl<'de> Deserialize<'de> for StageKvCacheConfig
impl<'de> Deserialize<'de> for StageKvCacheConfig
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
impl Eq for StageKvCacheConfig
Source§impl PartialEq for StageKvCacheConfig
impl PartialEq for StageKvCacheConfig
Source§impl Serialize for StageKvCacheConfig
impl Serialize for StageKvCacheConfig
impl StructuralPartialEq for StageKvCacheConfig
Auto Trait Implementations§
impl Freeze for StageKvCacheConfig
impl RefUnwindSafe for StageKvCacheConfig
impl Send for StageKvCacheConfig
impl Sync for StageKvCacheConfig
impl Unpin for StageKvCacheConfig
impl UnsafeUnpin for StageKvCacheConfig
impl UnwindSafe for StageKvCacheConfig
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