ReclaimStrategy

Trait ReclaimStrategy 

Source
pub trait ReclaimStrategy<T>
where T: Poolable,
{ // Required method fn reclaim(&self, data: T::Data); }
Expand description

Object pool reclamation strategy.

This trait is used to define the strategy for reclaiming items to an object pool.

Required Methods§

Source

fn reclaim(&self, data: T::Data)

Returns an item to the object pool.

Implementors§