pub trait PoolObjectTrait: Send + Sync + 'static {
type InitData: Clone + Sync + Send;
// Required methods
fn allocate_new(init_data: &Self::InitData) -> Self;
fn reset(&mut self);
}
pub trait PoolObjectTrait: Send + Sync + 'static {
type InitData: Clone + Sync + Send;
// Required methods
fn allocate_new(init_data: &Self::InitData) -> Self;
fn reset(&mut self);
}