pub struct MemoryPoolConfig {
pub initial_size: u64,
pub max_size: u64,
pub growth_factor: f64,
pub auto_defrag: bool,
pub defrag_threshold: f64,
}Expand description
Memory pool configuration.
Fields§
§initial_size: u64Initial pool size in bytes.
max_size: u64Maximum pool size in bytes.
growth_factor: f64Growth factor when expanding pool.
auto_defrag: boolEnable automatic defragmentation.
defrag_threshold: f64Defragmentation threshold (fragmentation ratio).
Trait Implementations§
Source§impl Clone for MemoryPoolConfig
impl Clone for MemoryPoolConfig
Source§fn clone(&self) -> MemoryPoolConfig
fn clone(&self) -> MemoryPoolConfig
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 MemoryPoolConfig
impl Debug for MemoryPoolConfig
Auto Trait Implementations§
impl Freeze for MemoryPoolConfig
impl RefUnwindSafe for MemoryPoolConfig
impl Send for MemoryPoolConfig
impl Sync for MemoryPoolConfig
impl Unpin for MemoryPoolConfig
impl UnsafeUnpin for MemoryPoolConfig
impl UnwindSafe for MemoryPoolConfig
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