PoolManager

Trait PoolManager 

Source
pub trait PoolManager<T> {
    // Required methods
    fn reset_handle(&mut self, handle: fn(&mut T)) -> &mut Self;
    fn allow_expansion(&mut self, allow: bool) -> &mut Self;
    fn expand(&mut self, additional: usize, block: bool) -> bool;
    fn refill(&mut self, count: usize) -> usize;
}

Required Methods§

Source

fn reset_handle(&mut self, handle: fn(&mut T)) -> &mut Self

Source

fn allow_expansion(&mut self, allow: bool) -> &mut Self

Source

fn expand(&mut self, additional: usize, block: bool) -> bool

Source

fn refill(&mut self, count: usize) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> PoolManager<T> for SyncPool<T>

The pool manager that provide many useful utilities to keep the SyncPool close to the needs of the caller program.