pub struct ExecutorMemoryConfig {
pub enable_memory_pooling: bool,
pub memory_pool_size: Option<usize>,
pub enable_kv_cache_sharing: bool,
pub max_memory_usage: f32,
}Expand description
Memory configuration for executor
Fields§
§enable_memory_pooling: boolEnable memory pooling
memory_pool_size: Option<usize>Memory pool size in bytes (None for auto)
enable_kv_cache_sharing: boolEnable KV cache sharing
max_memory_usage: f32Maximum memory usage percentage
Trait Implementations§
Source§impl Clone for ExecutorMemoryConfig
impl Clone for ExecutorMemoryConfig
Source§fn clone(&self) -> ExecutorMemoryConfig
fn clone(&self) -> ExecutorMemoryConfig
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 ExecutorMemoryConfig
impl Debug for ExecutorMemoryConfig
Source§impl<'de> Deserialize<'de> for ExecutorMemoryConfig
impl<'de> Deserialize<'de> for ExecutorMemoryConfig
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 ExecutorMemoryConfig
impl RefUnwindSafe for ExecutorMemoryConfig
impl Send for ExecutorMemoryConfig
impl Sync for ExecutorMemoryConfig
impl Unpin for ExecutorMemoryConfig
impl UnsafeUnpin for ExecutorMemoryConfig
impl UnwindSafe for ExecutorMemoryConfig
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