Struct objpool::Pool [] [src]

pub struct Pool<T, F> where F: Fn() -> T {
    // some fields omitted
}

Methods

impl<T, F> Pool<T, F> where F: Fn() -> T
[src]

fn new(create: F) -> Arc<Pool<T, F>>

fn get(&self) -> Item<T, F>

fn get_timeout(&self, duration: Duration) -> Result<Item<T, F>, TimeoutError>

Trait Implementations

impl<T, F> Debug for Pool<T, F> where F: Fn() -> T
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.