pub struct ZerocopyPoolConfig {
pub initial_buffer_count: usize,
pub max_buffer_count: usize,
pub buffer_size: usize,
pub simd_aligned: bool,
pub enable_statistics: bool,
}Expand description
Configuration for zerocopy memory pools
Fields§
§initial_buffer_count: usizeInitial number of buffers to pre-allocate
max_buffer_count: usizeMaximum number of buffers the pool can grow to
buffer_size: usizeSize of each buffer in bytes
simd_aligned: boolWhether buffers should be SIMD-aligned (32-byte alignment)
enable_statistics: boolWhether to track detailed statistics
Trait Implementations§
Source§impl Clone for ZerocopyPoolConfig
impl Clone for ZerocopyPoolConfig
Source§fn clone(&self) -> ZerocopyPoolConfig
fn clone(&self) -> ZerocopyPoolConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ZerocopyPoolConfig
impl Debug for ZerocopyPoolConfig
Auto Trait Implementations§
impl Freeze for ZerocopyPoolConfig
impl RefUnwindSafe for ZerocopyPoolConfig
impl Send for ZerocopyPoolConfig
impl Sync for ZerocopyPoolConfig
impl Unpin for ZerocopyPoolConfig
impl UnwindSafe for ZerocopyPoolConfig
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