pub struct BufferConfig {
pub default_size: usize,
pub alignment: usize,
pub enable_pooling: bool,
pub pool_size: usize,
pub max_pooled_size: usize,
pub numa_aware: bool,
pub numa_node: i32,
pub pre_register: bool,
}Expand description
Buffer management configuration.
Fields§
§default_size: usizeDefault buffer size for operations
alignment: usizeBuffer alignment (0 = system default)
enable_pooling: boolEnable buffer pooling
pool_size: usizeBuffer pool size per thread
max_pooled_size: usizeMaximum buffer size for pooling
numa_aware: boolEnable NUMA-aware allocation
numa_node: i32Preferred NUMA node (-1 = no preference)
pre_register: boolEnable buffer pre-registration
Trait Implementations§
Source§impl Clone for BufferConfig
impl Clone for BufferConfig
Source§fn clone(&self) -> BufferConfig
fn clone(&self) -> BufferConfig
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 BufferConfig
impl Debug for BufferConfig
Auto Trait Implementations§
impl Freeze for BufferConfig
impl RefUnwindSafe for BufferConfig
impl Send for BufferConfig
impl Sync for BufferConfig
impl Unpin for BufferConfig
impl UnwindSafe for BufferConfig
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