pub struct PoolConfig {
pub max_pool_size: usize,
pub min_pooled_size: usize,
pub max_pooled_size: usize,
pub prealloc_count: usize,
}
Expand description
Memory pool configuration for optimal performance
Fields§
§max_pool_size: usize
Maximum pool size per allocation class (in bytes)
min_pooled_size: usize
Minimum allocation size to pool
max_pooled_size: usize
Maximum allocation size to pool
prealloc_count: usize
Number of pre-allocated buffers per size class
Trait Implementations§
Source§impl Clone for PoolConfig
impl Clone for PoolConfig
Source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
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 PoolConfig
impl Debug for PoolConfig
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnwindSafe for PoolConfig
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