pub struct PoolConfig {
pub max_buffers_per_bucket: usize,
pub max_total_memory: usize,
pub buffer_ttl: Duration,
pub track_stats: bool,
pub simd_alignment: usize,
}
Expand description
Configuration for buffer pool behavior
Fields§
§max_buffers_per_bucket: usize
Maximum number of buffers per size bucket
max_total_memory: usize
Maximum total memory usage in bytes
buffer_ttl: Duration
How long to keep unused buffers before cleanup
track_stats: bool
Enable/disable pool statistics tracking
simd_alignment: usize
Alignment for SIMD operations (typically 32 or 64 bytes)
Implementations§
Source§impl PoolConfig
impl PoolConfig
Sourcepub fn simd_optimized() -> Self
pub fn simd_optimized() -> Self
Create configuration optimized for SIMD operations
Sourcepub fn low_memory() -> Self
pub fn low_memory() -> Self
Create configuration for low-memory environments
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