Struct lifeguard::PoolBuilder [] [src]

pub struct PoolBuilder<T> where T: Recycleable {
    pub starting_size: usize,
    pub max_size: usize,
    pub supplier: Option<Box<Supply<Output=T>>>,
}

Used to define settings for and ultimately create a Pool.

Fields

starting_size: usize max_size: usize supplier: Option<Box<Supply<Output=T>>>

Methods

impl<T> PoolBuilder<T> where T: Recycleable
[src]

fn with<U>(self, option_setter: U) -> PoolBuilder<T> where U: OptionSetter<PoolBuilder<T>>

fn build(self) -> Pool<T> where T: Recycleable