MemoryPoolFactory

Trait MemoryPoolFactory 

Source
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§

Source

type Pool: MemoryPool

The MemoryPool implementation created by this factory.

Required Methods§

Source

fn create(&self, options: MemoryPoolFactoryOptions) -> Self::Pool

Create a memory pool instance.

Implementors§

Source§

impl<F, P> MemoryPoolFactory for F

Source§

type Pool = P