pub trait MemoryPoolFactory: Send + Sync {
type Pool: MemoryPool;
// Required method
fn create(&self, options: MemoryPoolFactoryOptions) -> Self::Pool;
}Expand description
Factory for a custom memory pool.
Required Associated Types§
Sourcetype Pool: MemoryPool
type Pool: MemoryPool
The MemoryPool implementation created by this factory.
Required Methods§
Sourcefn create(&self, options: MemoryPoolFactoryOptions) -> Self::Pool
fn create(&self, options: MemoryPoolFactoryOptions) -> Self::Pool
Create a memory pool instance.