pub struct MemoryConfig {
pub use_memory_pools: bool,
pub small_pool_size: usize,
pub medium_pool_size: usize,
pub large_pool_size: usize,
pub track_per_task_memory: bool,
}Expand description
Configuration for memory management.
Fields§
§use_memory_pools: boolWhether to use memory pools
small_pool_size: usizeSize of small object pool (bytes)
medium_pool_size: usizeSize of medium object pool (bytes)
large_pool_size: usizeSize of large object pool (bytes)
track_per_task_memory: boolWhether to track memory usage per task
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§impl Debug for MemoryConfig
impl Debug for MemoryConfig
Auto Trait Implementations§
impl Freeze for MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnsafeUnpin for MemoryConfig
impl UnwindSafe for MemoryConfig
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