Struct lifeguard::settings::Supplier [] [src]

pub struct Supplier<S> where S: Supply(pub S);

Specifies a value implementing Supply<Output=T> that will be used to allocate new values. If unspecified, T::new() will be invoked.

Trait Implementations

impl<T, S> OptionSetter<PoolBuilder<T>> for Supplier<S> where S: Supply<Output=T> + 'static, T: Recycleable
[src]

fn set_option(self, builder: PoolBuilder<T>) -> PoolBuilder<T>